From d2b796bb5149474cb4e4b95e3275e48a589a67b3 Mon Sep 17 00:00:00 2001 From: Meseira Date: Thu, 24 Aug 2017 09:54:27 +0200 Subject: [PATCH] Fix multiplication symbols typos and remove useless parentheses --- learning/features/math/matrices_and_transforms.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/learning/features/math/matrices_and_transforms.rst b/learning/features/math/matrices_and_transforms.rst index 63e3557e6..b812c65ec 100644 --- a/learning/features/math/matrices_and_transforms.rst +++ b/learning/features/math/matrices_and_transforms.rst @@ -373,7 +373,7 @@ However, this is not the same: # yields a different results 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 ------------------------- @@ -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 regular inverse for orthonormal matrices).