title: What does left-to-right associativity mean?
body: <p>I am confused about the definition of left-to-right and right-to-left associativity. I have also seen them called left associativity and right associativity and would like to know which corresponds to which.</p>
  
  <p>I know that it relates to the order that operations with the same precedence are preformed, as in whether a = x * y * z means a = x * (y * z) or a = (x * y) * z. I don't know which one is left-to-right associative and which is right-to-left associative.</p>
  
  <p>I have tried Googleing it but all I have been able to find is tables of what the associativity of different operators are in c++. Looking at all the examples has just made me more confused.</p>
  
  <p>What also confuses me further is that:</p>
  
  <pre><code>glm::vec4 transformedVector = translationMatrix * rotationMatrix * scaleMatrix * originalVector;
  </code></pre>
  
  <p>preforms the scaling matrix multiplication first, followed by the rotation matrix followed by the translation. In this example the matrices are all of type glm::mat4 and the vectors are of type glm::vec4. Is this left-to-right or right-to-left associativity? Is this the same as normal multiplication or is multiplication of glm types different?</p>