gameprogcpp / code

Game Programming in C++ Code
Other
1.01k stars 354 forks source link

Error for the dot product #21

Closed imagire closed 5 years ago

imagire commented 5 years ago

Chapter 3 Page 70: The dot product does not fulfill the associative law, a.(b.c) != (a.b).c.

chalonverse commented 5 years ago

Good catch, I think I meant to say that scalar multiplication is associative over the dot product, but then the equation was also incorrect.

The following property is true: s (a dot b) = (s a) dot b = a dot (s b)