From 175ee5655dc60d9bce48e942716fde78503dc514 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 14 Sep 2010 18:46:45 +0000 Subject: [PATCH] add comments so I know which plane type is which git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10460 d7cf8633-e32d-0410-b094-e92efae38249 --- matrixlib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrixlib.c b/matrixlib.c index e15fb995..f84e922d 100644 --- a/matrixlib.c +++ b/matrixlib.c @@ -1648,6 +1648,7 @@ void Matrix4x4_Transform3x3 (const matrix4x4_t *in, const float v[3], float out[ #endif } +// transforms a positive distance plane (A*x+B*y+C*z-D=0) through a rotation or translation matrix void Matrix4x4_TransformPositivePlane(const matrix4x4_t *in, float x, float y, float z, float d, float *o) { float scale = sqrt(in->m[0][0] * in->m[0][0] + in->m[0][1] * in->m[0][1] + in->m[0][2] * in->m[0][2]); @@ -1665,6 +1666,7 @@ void Matrix4x4_TransformPositivePlane(const matrix4x4_t *in, float x, float y, f #endif } +// transforms a standard plane (A*x+B*y+C*z+D=0) through a rotation or translation matrix void Matrix4x4_TransformStandardPlane(const matrix4x4_t *in, float x, float y, float z, float d, float *o) { float scale = sqrt(in->m[0][0] * in->m[0][0] + in->m[0][1] * in->m[0][1] + in->m[0][2] * in->m[0][2]); -- 2.39.2