#include <glh_linear.h>
Public Member Functions | |
quaternion & | conjugate () |
bool | equals (const quaternion &r, real tolerance) const |
const real * | get_value () const |
void | get_value (real &q0, real &q1, real &q2, real &q3) const |
void | get_value (vec3 &axis, real &radians) const |
void | get_value (matrix4 &m) const |
quaternion | inverse () const |
quaternion & | invert () |
void | mult_vec (const vec3 &src, vec3 &dst) const |
void | mult_vec (vec3 &src_and_dst) const |
void | normalize () |
quaternion & | operator*= (const quaternion &qr) |
real & | operator[] (int i) |
const real & | operator[] (int i) const |
quaternion () | |
quaternion (const real v[4]) | |
quaternion (real q0, real q1, real q2, real q3) | |
quaternion (const matrix4 &m) | |
quaternion (const vec3 &axis, real radians) | |
quaternion (const vec3 &rotateFrom, const vec3 &rotateTo) | |
quaternion (const vec3 &from_look, const vec3 &from_up, const vec3 &to_look, const vec3 &to_up) | |
void | scale_angle (real scaleFactor) |
quaternion & | set_value (real q0, real q1, real q2, real q3) |
quaternion & | set_value (const real *qp) |
quaternion & | set_value (const matrix4 &m) |
quaternion & | set_value (const vec3 &axis, real theta) |
quaternion & | set_value (const vec3 &rotateFrom, const vec3 &rotateTo) |
quaternion & | set_value (const vec3 &from_look, const vec3 &from_up, const vec3 &to_look, const vec3 &to_up) |
Static Public Member Functions | |
static quaternion | identity () |
static quaternion | slerp (const quaternion &p, const quaternion &q, real alpha) |
Protected Member Functions | |
void | counter_normalize () |
Protected Attributes | |
union { | |
struct { | |
real q [4] | |
} | |
struct { | |
real w | |
real x | |
real y | |
real z | |
} | |
}; | |
unsigned char | counter |
Friends | |
bool | operator!= (const quaternion &q1, const quaternion &q2) |
quaternion | operator* (const quaternion &q1, const quaternion &q2) |
bool | operator== (const quaternion &q1, const quaternion &q2) |
Definition at line 1009 of file glh_linear.h.
glh::GLH_REAL_NAMESPACE::quaternion::quaternion | ( | ) | [inline] |
Definition at line 1013 of file glh_linear.h.
glh::GLH_REAL_NAMESPACE::quaternion::quaternion | ( | const real | v[4] | ) | [inline] |
Definition at line 1018 of file glh_linear.h.
glh::GLH_REAL_NAMESPACE::quaternion::quaternion | ( | real | q0, |
real | q1, | ||
real | q2, | ||
real | q3 | ||
) | [inline] |
Definition at line 1024 of file glh_linear.h.
glh::GLH_REAL_NAMESPACE::quaternion::quaternion | ( | const matrix4 & | m | ) | [inline] |
Definition at line 1030 of file glh_linear.h.
glh::GLH_REAL_NAMESPACE::quaternion::quaternion | ( | const vec3 & | axis, |
real | radians | ||
) | [inline] |
Definition at line 1036 of file glh_linear.h.
glh::GLH_REAL_NAMESPACE::quaternion::quaternion | ( | const vec3 & | rotateFrom, |
const vec3 & | rotateTo | ||
) | [inline] |
Definition at line 1042 of file glh_linear.h.
glh::GLH_REAL_NAMESPACE::quaternion::quaternion | ( | const vec3 & | from_look, |
const vec3 & | from_up, | ||
const vec3 & | to_look, | ||
const vec3 & | to_up | ||
) | [inline] |
Definition at line 1047 of file glh_linear.h.
quaternion& glh::GLH_REAL_NAMESPACE::quaternion::conjugate | ( | ) | [inline] |
Definition at line 1312 of file glh_linear.h.
void glh::GLH_REAL_NAMESPACE::quaternion::counter_normalize | ( | ) | [inline, protected] |
Definition at line 1414 of file glh_linear.h.
bool glh::GLH_REAL_NAMESPACE::quaternion::equals | ( | const quaternion & | r, |
real | tolerance | ||
) | const [inline] |
Definition at line 1298 of file glh_linear.h.
const real* glh::GLH_REAL_NAMESPACE::quaternion::get_value | ( | ) | const [inline] |
Definition at line 1053 of file glh_linear.h.
void glh::GLH_REAL_NAMESPACE::quaternion::get_value | ( | real & | q0, |
real & | q1, | ||
real & | q2, | ||
real & | q3 | ||
) | const [inline] |
Definition at line 1058 of file glh_linear.h.
void glh::GLH_REAL_NAMESPACE::quaternion::get_value | ( | vec3 & | axis, |
real & | radians | ||
) | const [inline] |
Definition at line 1076 of file glh_linear.h.
void glh::GLH_REAL_NAMESPACE::quaternion::get_value | ( | matrix4 & | m | ) | const [inline] |
Definition at line 1090 of file glh_linear.h.
static quaternion glh::GLH_REAL_NAMESPACE::quaternion::identity | ( | ) | [inline, static] |
Definition at line 1394 of file glh_linear.h.
quaternion glh::GLH_REAL_NAMESPACE::quaternion::inverse | ( | ) | const [inline] |
Definition at line 1325 of file glh_linear.h.
quaternion& glh::GLH_REAL_NAMESPACE::quaternion::invert | ( | ) | [inline] |
Definition at line 1320 of file glh_linear.h.
void glh::GLH_REAL_NAMESPACE::quaternion::mult_vec | ( | const vec3 & | src, |
vec3 & | dst | ||
) | const [inline] |
Definition at line 1335 of file glh_linear.h.
void glh::GLH_REAL_NAMESPACE::quaternion::mult_vec | ( | vec3 & | src_and_dst | ) | const [inline] |
Definition at line 1346 of file glh_linear.h.
void glh::GLH_REAL_NAMESPACE::quaternion::normalize | ( | ) | [inline] |
Definition at line 1280 of file glh_linear.h.
quaternion& glh::GLH_REAL_NAMESPACE::quaternion::operator*= | ( | const quaternion & | qr | ) | [inline] |
Definition at line 1265 of file glh_linear.h.
Definition at line 1400 of file glh_linear.h.
Definition at line 1406 of file glh_linear.h.
void glh::GLH_REAL_NAMESPACE::quaternion::scale_angle | ( | real | scaleFactor | ) | [inline] |
Definition at line 1351 of file glh_linear.h.
quaternion& glh::GLH_REAL_NAMESPACE::quaternion::set_value | ( | real | q0, |
real | q1, | ||
real | q2, | ||
real | q3 | ||
) | [inline] |
Definition at line 1066 of file glh_linear.h.
quaternion& glh::GLH_REAL_NAMESPACE::quaternion::set_value | ( | const real * | qp | ) | [inline] |
Definition at line 1130 of file glh_linear.h.
quaternion& glh::GLH_REAL_NAMESPACE::quaternion::set_value | ( | const matrix4 & | m | ) | [inline] |
Definition at line 1138 of file glh_linear.h.
quaternion& glh::GLH_REAL_NAMESPACE::quaternion::set_value | ( | const vec3 & | axis, |
real | theta | ||
) | [inline] |
Definition at line 1182 of file glh_linear.h.
quaternion& glh::GLH_REAL_NAMESPACE::quaternion::set_value | ( | const vec3 & | rotateFrom, |
const vec3 & | rotateTo | ||
) | [inline] |
Definition at line 1207 of file glh_linear.h.
quaternion& glh::GLH_REAL_NAMESPACE::quaternion::set_value | ( | const vec3 & | from_look, |
const vec3 & | from_up, | ||
const vec3 & | to_look, | ||
const vec3 & | to_up | ||
) | [inline] |
Definition at line 1250 of file glh_linear.h.
static quaternion glh::GLH_REAL_NAMESPACE::quaternion::slerp | ( | const quaternion & | p, |
const quaternion & | q, | ||
real | alpha | ||
) | [inline, static] |
Definition at line 1361 of file glh_linear.h.
bool operator!= | ( | const quaternion & | q1, |
const quaternion & | q2 | ||
) | [friend] |
Definition at line 1449 of file glh_linear.h.
quaternion operator* | ( | const quaternion & | q1, |
const quaternion & | q2 | ||
) | [friend] |
Definition at line 1455 of file glh_linear.h.
bool operator== | ( | const quaternion & | q1, |
const quaternion & | q2 | ||
) | [friend] |
Definition at line 1440 of file glh_linear.h.
union { ... } [protected] |
unsigned char glh::GLH_REAL_NAMESPACE::quaternion::counter [protected] |
Definition at line 1436 of file glh_linear.h.
Definition at line 1424 of file glh_linear.h.
Definition at line 1431 of file glh_linear.h.
Definition at line 1428 of file glh_linear.h.
Definition at line 1429 of file glh_linear.h.
Definition at line 1430 of file glh_linear.h.