mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Add the QuatSet macro.
Same as the VectorSet macro.
This commit is contained in:
parent
5c9ab2832f
commit
a59fee5346
1 changed files with 7 additions and 0 deletions
|
@ -180,6 +180,13 @@ extern const vec_t * const quat_origin;
|
|||
|
||||
#define QuatIsZero(a) (!(a)[0] && !(a)[1] && !(a)[2] && !(a)[3])
|
||||
#define QuatZero(a) ((a)[3] = (a)[2] = (a)[1] = (a)[0] = 0);
|
||||
#define QuatSet(a,b,c,d,e) \
|
||||
do { \
|
||||
(e)[0] = a; \
|
||||
(e)[1] = b; \
|
||||
(e)[2] = c; \
|
||||
(e)[3] = d; \
|
||||
} while (0)
|
||||
|
||||
#define QuatBlend(v1,v2,b,v) \
|
||||
do { \
|
||||
|
|
Loading…
Reference in a new issue