Browse Source

Fix multiplication symbols typos and remove useless parentheses

Meseira 8 years ago
parent
commit
d2b796bb51
1 changed files with 2 additions and 3 deletions
  1. 2 3
      learning/features/math/matrices_and_transforms.rst

+ 2 - 3
learning/features/math/matrices_and_transforms.rst

@@ -373,7 +373,7 @@ However, this is not the same:
     # yields a different results
     # yields a different results
     pos = (transform1 * transform2).xform(pos)
     pos = (transform1 * transform2).xform(pos)
 
 
-Because in matrix math, A + B is not the same as B + A.
+Because in matrix math, A * B is not the same as B * A.
 
 
 Multiplication by inverse
 Multiplication by inverse
 -------------------------
 -------------------------
@@ -409,8 +409,7 @@ For 3 levels:
 
 
 ::
 ::
 
 
-    # due to reverse order, parenthesis are needed
-    var global_xform = gradparent_matrix + (parent_matrix + child_matrix)
+    var global_xform = gradparent_matrix * parent_matrix * child_matrix
 
 
 To make a matrix relative to the parent, use the affine inverse (or
 To make a matrix relative to the parent, use the affine inverse (or
 regular inverse for orthonormal matrices).
 regular inverse for orthonormal matrices).