From: havoc Date: Wed, 15 Jan 2003 13:12:14 +0000 (+0000) Subject: tiny cleanup to RotatePointAroundVector (uses a VectorCopy instead of 3 lines) X-Git-Tag: RELEASE_0_2_0_RC1~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a3a9a6454a1d1450eef77e7d0411a196805f2673;p=xonotic%2Fdarkplaces.git 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 --- 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;