#include <tgMathlib.h>
Public Member Functions | |
operator const float * () const | |
operator float * () | |
quat | operator* (const quat &q) const |
float & | operator[] (int i) |
float | operator[] (int i) const |
quat () | |
quat (const vec3 &dir, float angle) | |
quat (float x, float y, float z, float angle) | |
quat (const mat3 &m) | |
void | set (const vec3 &dir, float angle) |
void | set (float x, float y, float z, float angle) |
void | slerp (const quat &q0, const quat &q1, float t) |
mat3 | to_matrix () const |
Public Attributes | |
union { | |
struct { | |
float w | |
float x | |
float y | |
float z | |
} | |
float q [4] | |
}; |
Definition at line 865 of file tgMathlib.h.
quat::quat | ( | ) | [inline] |
Definition at line 867 of file tgMathlib.h.
quat::quat | ( | const vec3 & | dir, |
float | angle | ||
) | [inline] |
Definition at line 868 of file tgMathlib.h.
quat::quat | ( | float | x, |
float | y, | ||
float | z, | ||
float | angle | ||
) | [inline] |
Definition at line 871 of file tgMathlib.h.
quat::quat | ( | const mat3 & | m | ) | [inline] |
Definition at line 874 of file tgMathlib.h.
quat::operator const float * | ( | ) | const [inline] |
Definition at line 900 of file tgMathlib.h.
quat::operator float * | ( | ) | [inline] |
Definition at line 899 of file tgMathlib.h.
Definition at line 905 of file tgMathlib.h.
float& quat::operator[] | ( | int | i | ) | [inline] |
Definition at line 902 of file tgMathlib.h.
float quat::operator[] | ( | int | i | ) | const [inline] |
Definition at line 903 of file tgMathlib.h.
Definition at line 914 of file tgMathlib.h.
void quat::set | ( | float | x, |
float | y, | ||
float | z, | ||
float | angle | ||
) | [inline] |
Definition at line 928 of file tgMathlib.h.
void quat::slerp | ( | const quat & | q0, |
const quat & | q1, | ||
float | t | ||
) | [inline] |
Definition at line 932 of file tgMathlib.h.
mat3 quat::to_matrix | ( | ) | const [inline] |
Definition at line 962 of file tgMathlib.h.
union { ... } |
float quat::q[4] |
Definition at line 986 of file tgMathlib.h.
float quat::w |
Definition at line 984 of file tgMathlib.h.
float quat::x |
Definition at line 984 of file tgMathlib.h.
float quat::y |
Definition at line 984 of file tgMathlib.h.
float quat::z |
Definition at line 984 of file tgMathlib.h.