Go to the source code of this file.
|
#define | VECTOR_EPSILON 0.001f |
|
#define | vec2_zero vec2_origin |
|
#define | vec3_zero vec3_origin |
|
#define | vec4_zero vec4_origin |
|
#define | vec5_zero vec5_origin |
|
#define | vec6_zero vec6_origin |
|
#define | VECX_MAX_TEMP 1024 |
|
#define | VECX_QUAD(x) ( ( ( ( x ) + 3 ) & ~3 ) * sizeof( float ) ) |
|
#define | VECX_CLEAREND() int s = size; while( s < ( ( s + 3) & ~3 ) ) { p[s++] = 0.0f; } |
|
#define | VECX_ALLOCA(n) ( (float *) _alloca16( VECX_QUAD( n ) ) ) |
|
#define | VECX_SIMD |
|
#define | DotProduct(a, b) ((a)[0]*(b)[0]+(a)[1]*(b)[1]+(a)[2]*(b)[2]) |
|
#define | VectorSubtract(a, b, c) ((c)[0]=(a)[0]-(b)[0],(c)[1]=(a)[1]-(b)[1],(c)[2]=(a)[2]-(b)[2]) |
|
#define | VectorAdd(a, b, c) ((c)[0]=(a)[0]+(b)[0],(c)[1]=(a)[1]+(b)[1],(c)[2]=(a)[2]+(b)[2]) |
|
#define | VectorScale(v, s, o) ((o)[0]=(v)[0]*(s),(o)[1]=(v)[1]*(s),(o)[2]=(v)[2]*(s)) |
|
#define | VectorMA(v, s, b, o) ((o)[0]=(v)[0]+(b)[0]*(s),(o)[1]=(v)[1]+(b)[1]*(s),(o)[2]=(v)[2]+(b)[2]*(s)) |
|
#define | VectorCopy(a, b) ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2]) |
|
#define DotProduct |
( |
|
a, |
|
|
|
b |
|
) |
| ((a)[0]*(b)[0]+(a)[1]*(b)[1]+(a)[2]*(b)[2]) |
#define VECTOR_EPSILON 0.001f |
#define VectorAdd |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| ((c)[0]=(a)[0]+(b)[0],(c)[1]=(a)[1]+(b)[1],(c)[2]=(a)[2]+(b)[2]) |
#define VectorCopy |
( |
|
a, |
|
|
|
b |
|
) |
| ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2]) |
#define VectorMA |
( |
|
v, |
|
|
|
s, |
|
|
|
b, |
|
|
|
o |
|
) |
| ((o)[0]=(v)[0]+(b)[0]*(s),(o)[1]=(v)[1]+(b)[1]*(s),(o)[2]=(v)[2]+(b)[2]*(s)) |
#define VectorScale |
( |
|
v, |
|
|
|
s, |
|
|
|
o |
|
) |
| ((o)[0]=(v)[0]*(s),(o)[1]=(v)[1]*(s),(o)[2]=(v)[2]*(s)) |
#define VectorSubtract |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| ((c)[0]=(a)[0]-(b)[0],(c)[1]=(a)[1]-(b)[1],(c)[2]=(a)[2]-(b)[2]) |
#define VECX_CLEAREND |
( |
| ) |
int s = size; while( s < ( ( s + 3) & ~3 ) ) { p[s++] = 0.0f; } |
#define VECX_MAX_TEMP 1024 |
#define VECX_QUAD |
( |
|
x | ) |
( ( ( ( x ) + 3 ) & ~3 ) * sizeof( float ) ) |