mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Add quat_origin convenience constant.
Same as vec3_origin in that all elements are zero.
This commit is contained in:
parent
4da2657bfe
commit
13503198e5
2 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue