From: havoc Date: Fri, 30 Aug 2002 13:16:43 +0000 (+0000) Subject: consistency cleanup of a (disabled) part of Invert_Simple X-Git-Tag: RELEASE_0_2_0_RC1~287 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d56c15ae4985c9a27820c74adba7c90f88667538;p=xonotic%2Fdarkplaces.git consistency cleanup of a (disabled) part of Invert_Simple git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2317 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/matrixlib.c b/matrixlib.c index 603b617c..40798fda 100644 --- a/matrixlib.c +++ b/matrixlib.c @@ -142,8 +142,8 @@ void Matrix4x4_Invert_Simple (matrix4x4_t *out, const matrix4x4_t *in1) (in1->m[0][0] * in1->m[0][0] + in1->m[0][1] * in1->m[0][1] + in1->m[0][2] * in1->m[0][2] + in1->m[1][0] * in1->m[1][0] + in1->m[1][1] * in1->m[1][1] + in1->m[1][2] * in1->m[1][2] + in1->m[2][0] * in1->m[2][0] + in1->m[2][1] * in1->m[2][1] + in1->m[2][2] * in1->m[2][2]); -#endif scale *= scale; +#endif // invert the rotation by transposing and multiplying by the squared // recipricol of the input matrix scale as described above @@ -518,6 +518,7 @@ void Matrix3x4_Invert_Simple (matrix3x4_t *out, const matrix3x4_t *in1) (in1->m[0][0] * in1->m[0][0] + in1->m[0][1] * in1->m[0][1] + in1->m[0][2] * in1->m[0][2] + in1->m[1][0] * in1->m[1][0] + in1->m[1][1] * in1->m[1][1] + in1->m[1][2] * in1->m[1][2] + in1->m[2][0] * in1->m[2][0] + in1->m[2][1] * in1->m[2][1] + in1->m[2][2] * in1->m[2][2]); + scale *= scale; #endif // invert the rotation by transposing and multiplying by the squared