Add quat_origin convenience constant.

Same as vec3_origin in that all elements are zero.
This commit is contained in:
Bill Currie 2011-01-11 08:41:40 +09:00
parent 4da2657bfe
commit 13503198e5
2 changed files with 3 additions and 0 deletions

View file

@ -43,6 +43,7 @@
extern int nanmask;
extern const vec_t * const vec3_origin;
extern const vec_t * const quat_origin;
#define EQUAL_EPSILON 0.001
#define RINT(x) (floor ((x) + 0.5))

View file

@ -52,6 +52,8 @@ static mplane_t _frustum[4];
VISIBLE mplane_t *const frustum = _frustum;
static vec3_t _vec3_origin = { 0, 0, 0 };
VISIBLE const vec_t * const vec3_origin = _vec3_origin;
static vec3_t _quat_origin = { 0, 0, 0 };
VISIBLE const vec_t * const quat_origin = _quat_origin;
#define DEG2RAD(a) (a * (M_PI / 180.0))