added Vector4Set macro
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 10 May 2006 11:16:44 +0000 (11:16 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 10 May 2006 11:16:44 +0000 (11:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6361 d7cf8633-e32d-0410-b094-e92efae38249

mathlib.h

index 2ce09e5..c56df89 100644 (file)
--- a/mathlib.h
+++ b/mathlib.h
@@ -62,6 +62,7 @@ extern vec3_t vec3_origin;
 
 #define VectorNegate(a,b) ((b)[0]=-((a)[0]),(b)[1]=-((a)[1]),(b)[2]=-((a)[2]))
 #define VectorSet(a,b,c,d) ((a)[0]=(b),(a)[1]=(c),(a)[2]=(d))
+#define Vector4Set(a,b,c,d,e) ((a)[0]=(b),(a)[1]=(c),(a)[2]=(d),(a)[3]=(e))
 #define VectorClear(a) ((a)[0]=(a)[1]=(a)[2]=0)
 #define DotProduct(a,b) ((a)[0]*(b)[0]+(a)[1]*(b)[1]+(a)[2]*(b)[2])
 #define VectorSubtract(a,b,c) ((c)[0]=(a)[0]-(b)[0],(c)[1]=(a)[1]-(b)[1],(c)[2]=(a)[2]-(b)[2])