#include <quaternion.h>
Public Member Functions | |
matrix3 | to_matrix () |
quaternion () | |
quaternion (float s, vec3 v) | |
quaternion (float s, float x, float y, float z) | |
quaternion | conjugate () const |
quaternion & | compute_w () |
quaternion & | normalize () |
float | magnitude () const |
quaternion & | operator= (const quaternion &q) |
quaternion | operator+ (const quaternion &q) const |
quaternion | operator- (const quaternion &q) const |
quaternion | operator- () const |
quaternion | operator* (const float scalar) const |
quaternion | operator/ (const float scalar) const |
quaternion | operator* (const vec3 &vec) const |
quaternion | operator* (const quaternion &q) const |
quaternion & | operator*= (const quaternion &q) |
quaternion & | operator+= (const quaternion &q) |
quaternion & | operator-= (const quaternion &q) |
vec3 | rotate (float delta, const vec3 &axis, const vec3 &vector) |
Static Public Member Functions | |
static void | slerp (const quaternion &q, const quaternion &p, float time, quaternion &result) |
Public Attributes | |
float | s |
float | x |
float | y |
float | z |
quaternion::quaternion | ( | ) |
quaternion::quaternion | ( | float | s, |
vec3 | v | ||
) |
quaternion::quaternion | ( | float | s, |
float | x, | ||
float | y, | ||
float | z | ||
) |
quaternion & quaternion::compute_w | ( | ) |
quaternion quaternion::conjugate | ( | ) | const |
float quaternion::magnitude | ( | ) | const |
quaternion & quaternion::normalize | ( | ) |
quaternion quaternion::operator* | ( | const float | scalar | ) | const |
quaternion quaternion::operator* | ( | const vec3 & | vec | ) | const |
quaternion quaternion::operator* | ( | const quaternion & | q | ) | const |
quaternion & quaternion::operator*= | ( | const quaternion & | q | ) |
quaternion quaternion::operator+ | ( | const quaternion & | q | ) | const |
quaternion & quaternion::operator+= | ( | const quaternion & | q | ) |
quaternion quaternion::operator- | ( | const quaternion & | q | ) | const |
quaternion quaternion::operator- | ( | ) | const |
quaternion & quaternion::operator-= | ( | const quaternion & | q | ) |
quaternion quaternion::operator/ | ( | const float | scalar | ) | const |
quaternion & quaternion::operator= | ( | const quaternion & | q | ) |
|
static |
matrix3 quaternion::to_matrix | ( | ) |
float quaternion::s |
float quaternion::x |
float quaternion::y |
float quaternion::z |