]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - matrix4x4.c
Matrix4x4_CreateRotate and Matrix3x4_CreateRotate now take degrees instead of radians...
[xonotic/darkplaces.git] / matrix4x4.c
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);