]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
tiny cleanup to RotatePointAroundVector (uses a VectorCopy instead of 3 lines)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Jan 2003 13:12:14 +0000 (13:12 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Jan 2003 13:12:14 +0000 (13:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2691 d7cf8633-e32d-0410-b094-e92efae38249

mathlib.c

index a0e328d0e86fb21836f4a05f02cd101c10e86e03..4dea77d59d066b15b7b57600ebe6c74c62905cbd 100644 (file)
--- a/mathlib.c
+++ b/mathlib.c
@@ -244,14 +244,9 @@ void RotatePointAroundVector( vec3_t dst, const vec3_t dir, const vec3_t point,
        vec3_t vr, vu, vf;
 
        angle = DEG2RAD(degrees);
-
        c = cos(angle);
        s = sin(angle);
-
-       vf[0] = dir[0];
-       vf[1] = dir[1];
-       vf[2] = dir[2];
-
+       VectorCopy(dir, vf);
        VectorVectors(vf, vr, vu);
 
        t0 = vr[0] *  c + vu[0] * -s;