From: havoc Date: Mon, 8 Jul 2002 02:40:59 +0000 (+0000) Subject: Matrix4x4_CreateRotate and Matrix3x4_CreateRotate now take degrees instead of radians... X-Git-Tag: RELEASE_0_2_0_RC1~442 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=69978877aad18616e938bac5eeb77c5bf96f4cc4;p=xonotic%2Fdarkplaces.git Matrix4x4_CreateRotate and Matrix3x4_CreateRotate now take degrees instead of radians for the angle git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2017 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/matrix3x4.c b/matrix3x4.c index a716b120..a6a12910 100644 --- a/matrix3x4.c +++ b/matrix3x4.c @@ -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); diff --git a/matrix4x4.c b/matrix4x4.c index 2fe644bf..0039d806 100644 --- a/matrix4x4.c +++ b/matrix4x4.c @@ -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);