From: divverent Date: Tue, 14 Sep 2010 18:46:45 +0000 (+0000) Subject: add comments so I know which plane type is which X-Git-Tag: xonotic-v0.1.0preview~233 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7cab6e438ae92bba2f4118708d51598a00abf928;p=xonotic%2Fdarkplaces.git 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 ::stable-branch::merge=175ee5655dc60d9bce48e942716fde78503dc514 --- 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]);