From 69978877aad18616e938bac5eeb77c5bf96f4cc4 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 8 Jul 2002 02:40:59 +0000 Subject: [PATCH] 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 --- matrix3x4.c | 1 + matrix4x4.c | 1 + 2 files changed, 2 insertions(+) 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); -- 2.39.2