#include <quat.h>
Public Member Functions | |
Quat | conj () const |
float | dot (const Quat &q) const |
void | getAxisAng (Vec3 &axis, float &ang) const |
Vec3 | getRPY () const |
Quat | inv () const |
float | norm () const |
void | normalize () |
Quat | normalized () const |
bool | operator!= (const Quat &q) const |
Quat | operator* (const Quat &q) const |
Vec3 | operator* (const Vec3 &v) const |
Quat | operator* (const float &s) const |
Quat | operator*= (const float &s) |
Quat | operator+ (const Quat &q) const |
Quat | operator+= (const Quat &q) |
Quat | operator- (const Quat &q) const |
Quat | operator- () const |
Quat | operator-= (const Quat &q) |
Quat | operator/ (const float &s) const |
Quat | operator/= (const float &s) |
bool | operator== (const Quat &q) const |
Quat (const float &x, const float &y, const float &z, const float &w) | |
Quat (const Vec3 &axis, const float &ang) | |
Quat (const Vec3 &forward, const Vec3 &up_raw) | |
Quat (const Vec3 &rpy) | |
Quat () | |
void | rotateAxis (const Quat &r) |
void | setAxisAng (const Vec3 &axis, const float &ang) |
void | setRPY (const Vec3 &rpy) |
Quat | weighted (const float &s) const |
Public Attributes | |
float | w_ |
float | x_ |
float | y_ |
float | z_ |
mcl_3dl::Quat::Quat | ( | const float & | x, |
const float & | y, | ||
const float & | z, | ||
const float & | w | ||
) | [inline] |
mcl_3dl::Quat::Quat | ( | const Vec3 & | axis, |
const float & | ang | ||
) | [inline] |
mcl_3dl::Quat::Quat | ( | const Vec3 & | forward, |
const Vec3 & | up_raw | ||
) | [inline] |
mcl_3dl::Quat::Quat | ( | const Vec3 & | rpy | ) | [inline, explicit] |
mcl_3dl::Quat::Quat | ( | ) | [inline] |
Quat mcl_3dl::Quat::conj | ( | ) | const [inline] |
float mcl_3dl::Quat::dot | ( | const Quat & | q | ) | const [inline] |
void mcl_3dl::Quat::getAxisAng | ( | Vec3 & | axis, |
float & | ang | ||
) | const [inline] |
Vec3 mcl_3dl::Quat::getRPY | ( | ) | const [inline] |
Quat mcl_3dl::Quat::inv | ( | ) | const [inline] |
float mcl_3dl::Quat::norm | ( | ) | const [inline] |
void mcl_3dl::Quat::normalize | ( | ) | [inline] |
Quat mcl_3dl::Quat::normalized | ( | ) | const [inline] |
bool mcl_3dl::Quat::operator!= | ( | const Quat & | q | ) | const [inline] |
Quat mcl_3dl::Quat::operator* | ( | const float & | s | ) | const [inline] |
Quat mcl_3dl::Quat::operator/ | ( | const float & | s | ) | const [inline] |
bool mcl_3dl::Quat::operator== | ( | const Quat & | q | ) | const [inline] |
void mcl_3dl::Quat::rotateAxis | ( | const Quat & | r | ) | [inline] |
void mcl_3dl::Quat::setAxisAng | ( | const Vec3 & | axis, |
const float & | ang | ||
) | [inline] |
void mcl_3dl::Quat::setRPY | ( | const Vec3 & | rpy | ) | [inline] |
Quat mcl_3dl::Quat::weighted | ( | const float & | s | ) | const [inline] |
float mcl_3dl::Quat::w_ |
float mcl_3dl::Quat::x_ |
float mcl_3dl::Quat::y_ |
float mcl_3dl::Quat::z_ |