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:
Bill Currie 2011-11-28 09:36:09 +09:00
parent 7f551026f5
commit 268e732b90

View file

@ -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;