summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-06-05 18:53:37 +0200
committerraysan5 <[email protected]>2017-06-05 18:53:37 +0200
commit43cb6414f6d579f891f4e0dec4440060a31981c5 (patch)
treeb1ae85bd66f55c98a7b47f5487b5ce25d4d19826 /src/raymath.h
parent99c7ca4f4af57b9aa89243122582714676b54b52 (diff)
downloadraylib-43cb6414f6d579f891f4e0dec4440060a31981c5.tar.gz
raylib-43cb6414f6d579f891f4e0dec4440060a31981c5.zip
Added note about transposing
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/raymath.h b/src/raymath.h
index 1dbebc07..2bde2042 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -413,6 +413,12 @@ RMDEF void VectorTransform(Vector3 *v, Matrix mat)
v->x = mat.m0*x + mat.m4*y + mat.m8*z + mat.m12;
v->y = mat.m1*x + mat.m5*y + mat.m9*z + mat.m13;
v->z = mat.m2*x + mat.m6*y + mat.m10*z + mat.m14;
+
+ /*
+ v->x = mat.m0*x + mat.m1*y + mat.m2*z + mat.m3;
+ v->y = mat.m4*x + mat.m5*y + mat.m6*z + mat.m7;
+ v->z = mat.m8*x + mat.m9*y + mat.m10*z + mat.m11;
+ */
};
// Calculate linear interpolation between two vectors