]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Matrix4x4_CreateRotate and Matrix3x4_CreateRotate now take degrees instead of radians...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 8 Jul 2002 02:40:59 +0000 (02:40 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 8 Jul 2002 02:40:59 +0000 (02:40 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2017 d7cf8633-e32d-0410-b094-e92efae38249

matrix3x4.c
matrix4x4.c

index a716b1202888aefb2e1af17ef1d0d571d302b081..a6a1291027d266b9f51a735562817851d122d873 100644 (file)
@@ -82,6 +82,7 @@ void Matrix3x4_CreateRotate (matrix3x4_t *out, float angle, float x, float y, fl
        y *= len;
        z *= len;
 
+       angle *= M_PI / 180.0;
        c = cos(angle);
        s = sin(angle);
 
index 2fe644bf184a57eb7df84dbf0caebd485effa23e..0039d806f76c84f9d99a1e8a81a7dd7338e7b684 100644 (file)
@@ -98,6 +98,7 @@ void Matrix4x4_CreateRotate (matrix4x4_t *out, float angle, float x, float y, fl
        y *= len;
        z *= len;
 
+       angle *= M_PI / 180.0;
        c = cos(angle);
        s = sin(angle);