From a3a9a6454a1d1450eef77e7d0411a196805f2673 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 15 Jan 2003 13:12:14 +0000 Subject: [PATCH] tiny cleanup to RotatePointAroundVector (uses a VectorCopy instead of 3 lines) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2691 d7cf8633-e32d-0410-b094-e92efae38249 --- mathlib.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mathlib.c b/mathlib.c index a0e328d0..4dea77d5 100644 --- 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; -- 2.39.2