Macros | |
#define | QDotProduct(a, b) |
#define | QuatAdd(a, b, c) |
#define | QuatBlend(q1, q2, b, q) |
#define | QuatCompare(x, y) QuatCompCompare (x, ==, y) |
#define | QuatCompBound(a, b, c, d) |
#define | QuatCompCompare(x, op, y) |
#define | QuatCompDiv(a, b, c) |
#define | QuatCompMax(a, b, c) |
#define | QuatCompMin(a, b, c) |
#define | QuatCompMult(a, b, c) |
#define | QuatConj(a, b) |
#define | QuatCopy(a, b) |
#define | QuatExpand(q) (q)[0], (q)[1], (q)[2], (q)[3] |
#define | QuatIsZero(a) (!(a)[0] && !(a)[1] && !(a)[2] && !(a)[3]) |
#define | QuatLength(a) sqrt(QDotProduct(a, a)) |
#define | QuatMultAdd(a, s, b, c) |
#define | QuatMultSub(a, s, b, c) |
#define | QuatNegate(a, b) |
#define | QuatScale(a, b, c) |
#define | QuatSet(a, b, c, d, e) |
#define | QuatSubtract(a, b, c) |
#define | QuatZero(a) ((a)[3] = (a)[2] = (a)[1] = (a)[0] = 0); |
Functions | |
void | QuatExp (const quat_t a, quat_t b) |
void | QuatInverse (const quat_t in, quat_t out) |
void | QuatMult (const quat_t q1, const quat_t q2, quat_t out) |
void | QuatMultVec (const quat_t q, const vec3_t v, vec3_t out) |
void | QuatToMatrix (const quat_t q, vec_t *m, int homogenous, int vertical) |
Variables | |
const vec_t *const | quat_origin |
#define QDotProduct | ( | a, | |
b | |||
) |
#define QuatAdd | ( | a, | |
b, | |||
c | |||
) |
#define QuatBlend | ( | q1, | |
q2, | |||
b, | |||
q | |||
) |
#define QuatCompare | ( | x, | |
y | |||
) | QuatCompCompare (x, ==, y) |
#define QuatCompBound | ( | a, | |
b, | |||
c, | |||
d | |||
) |
#define QuatCompDiv | ( | a, | |
b, | |||
c | |||
) |
#define QuatCompMax | ( | a, | |
b, | |||
c | |||
) |
#define QuatCompMin | ( | a, | |
b, | |||
c | |||
) |
#define QuatCompMult | ( | a, | |
b, | |||
c | |||
) |
#define QuatConj | ( | a, | |
b | |||
) |
#define QuatCopy | ( | a, | |
b | |||
) |
#define QuatExpand | ( | q | ) | (q)[0], (q)[1], (q)[2], (q)[3] |
#define QuatIsZero | ( | a | ) | (!(a)[0] && !(a)[1] && !(a)[2] && !(a)[3]) |
#define QuatLength | ( | a | ) | sqrt(QDotProduct(a, a)) |
#define QuatMultAdd | ( | a, | |
s, | |||
b, | |||
c | |||
) |
#define QuatMultSub | ( | a, | |
s, | |||
b, | |||
c | |||
) |
#define QuatNegate | ( | a, | |
b | |||
) |
#define QuatScale | ( | a, | |
b, | |||
c | |||
) |
#define QuatSet | ( | a, | |
b, | |||
c, | |||
d, | |||
e | |||
) |
#define QuatSubtract | ( | a, | |
b, | |||
c | |||
) |
#define QuatZero | ( | a | ) | ((a)[3] = (a)[2] = (a)[1] = (a)[0] = 0); |