What does left-to-right associativity mean?

后端 未结 6 727
生来不讨喜
生来不讨喜 2020-12-29 21:23

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 t

6条回答
  •  情话喂你
    2020-12-29 22:10

    a = (x * y) * z is left-to-right and a = x * (y * z) is right-to-left.

    glm's matrix multiplcation associates left-to-right because it overloads the * operator. The issue here is about the meaning of the matrix multiplications in terms of geometrical transformations, rather than the mathematical associativity.

提交回复
热议问题