diff --git a/include/QF/mathlib.h b/include/QF/mathlib.h index 164711bc9..3cce24532 100644 --- a/include/QF/mathlib.h +++ b/include/QF/mathlib.h @@ -99,6 +99,12 @@ extern const vec_t * const vec3_origin; #define VectorIsZero(a) (!(a)[0] && !(a)[1] && !(a)[2]) #define VectorZero(a) ((a)[2] = (a)[1] = (a)[0] = 0); +#define VectorSet(a,b,c,d) \ + do { \ + (d)[0] = a; \ + (d)[1] = b; \ + (d)[2] = c; \ + } while (0) #define VectorBlend(v1,v2,b,v) \ do { \