mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
Add a Quat_t union.
It isn't used yet, but it might make messing with quaternions a little easier.
This commit is contained in:
parent
7f551026f5
commit
268e732b90
1 changed files with 7 additions and 0 deletions
|
@ -72,6 +72,13 @@ typedef vec_t vec3_t[3]; ///< A 3D vector (used for Euler angles and motion vect
|
|||
typedef vec_t vec4_t[4];
|
||||
typedef vec_t quat_t[4]; ///< A quaternion.
|
||||
typedef vec_t vec5_t[5];
|
||||
typedef union {
|
||||
struct {
|
||||
vec_t s;
|
||||
vec3_t v;
|
||||
} sv;
|
||||
quat_t q;
|
||||
} Quat_t;
|
||||
typedef int fixed4_t;
|
||||
typedef int fixed8_t;
|
||||
typedef int fixed16_t;
|
||||
|
|
Loading…
Reference in a new issue