#include <spDimensionQuaternion.hpp>
Public Member Functions | |
quaternion4 () | |
quaternion4 (const T &x, const T &y, const T &z) | |
quaternion4 (const T &x, const T &y, const T &z, const T &w) | |
quaternion4 (const vector3d< T > &Vec) | |
quaternion4 (const vector4d< T > &Vec) | |
quaternion4 (const quaternion4< T > &Other) | |
quaternion4 (const matrix4< T > &Matrix) | |
~quaternion4 () | |
quaternion4< T > & | operator= (const quaternion4< T > &Other) |
bool | operator== (const quaternion4< T > &Other) const |
bool | operator!= (const quaternion4< T > &Other) const |
bool | operator< (const quaternion4< T > &Other) const |
bool | operator> (const quaternion4< T > &Other) const |
bool | operator<= (const quaternion4< T > &Other) const |
bool | operator>= (const quaternion4< T > &Other) const |
quaternion4< T > | operator+ (const quaternion4< T > &Other) const |
quaternion4< T > & | operator+= (const quaternion4< T > &Other) |
quaternion4< T > | operator- (const quaternion4< T > &Other) const |
quaternion4< T > & | operator-= (const quaternion4< T > &Other) |
quaternion4< T > | operator/ (const quaternion4< T > &Other) const |
quaternion4< T > & | operator/= (const quaternion4< T > &Other) |
quaternion4< T > | operator* (const quaternion4< T > &Other) const |
quaternion4< T > & | operator*= (const quaternion4< T > &Other) |
vector3d< T > | operator* (const vector3d< T > &Vector) const |
quaternion4 | operator/ (const T &Size) const |
quaternion4 & | operator/= (const T &Size) |
quaternion4 | operator* (const T &Size) const |
quaternion4 & | operator*= (const T &Size) |
const T | operator[] (u32 i) const |
T & | operator[] (u32 i) |
T | dot (const quaternion4< T > &Other) const |
quaternion4< T > & | normalize () |
quaternion4 & | setInverse () |
quaternion4 | getInverse () const |
void | set (const T &NewX, const T &NewY, const T &NewZ, const T &NewW) |
void | set (const T &NewX, const T &NewY, const T &NewZ) |
void | set (const vector3d< T > &Vector) |
void | set (const vector4d< T > &Vector) |
void | getMatrix (matrix4< T > &Mat) const |
matrix4< T > | getMatrix () const |
void | getMatrixTransposed (matrix4< T > &Mat) const |
matrix4< T > | getMatrixTransposed () const |
void | setMatrix (const matrix4< T > &Mat) |
quaternion4< T > & | setAngleAxis (const T &Angle, const vector3d< T > &Axis) |
void | getAngleAxis (T &Angle, vector3d< T > &Axis) const |
void | getEuler (vector3d< T > &Euler) const |
void | slerp (const quaternion4< T > &to, const T &t) |
void | slerp (const quaternion4< T > &from, const quaternion4< T > &to, const T &t) |
void | reset () |
Public Attributes | |
T | X |
T | Y |
T | Z |
T | W |
sp::dim::quaternion4< T >::quaternion4 | ( | ) | [inline] |
sp::dim::quaternion4< T >::quaternion4 | ( | const T & | x, | |
const T & | y, | |||
const T & | z | |||
) | [inline] |
sp::dim::quaternion4< T >::quaternion4 | ( | const T & | x, | |
const T & | y, | |||
const T & | z, | |||
const T & | w | |||
) | [inline] |
sp::dim::quaternion4< T >::quaternion4 | ( | const vector3d< T > & | Vec | ) | [inline] |
sp::dim::quaternion4< T >::quaternion4 | ( | const vector4d< T > & | Vec | ) | [inline] |
sp::dim::quaternion4< T >::quaternion4 | ( | const quaternion4< T > & | Other | ) | [inline] |
sp::dim::quaternion4< T >::quaternion4 | ( | const matrix4< T > & | Matrix | ) | [inline] |
sp::dim::quaternion4< T >::~quaternion4 | ( | ) | [inline] |
T sp::dim::quaternion4< T >::dot | ( | const quaternion4< T > & | Other | ) | const [inline] |
void sp::dim::quaternion4< T >::getAngleAxis | ( | T & | Angle, | |
vector3d< T > & | Axis | |||
) | const [inline] |
void sp::dim::quaternion4< T >::getEuler | ( | vector3d< T > & | Euler | ) | const [inline] |
quaternion4 sp::dim::quaternion4< T >::getInverse | ( | ) | const [inline] |
matrix4<T> sp::dim::quaternion4< T >::getMatrix | ( | ) | const [inline] |
void sp::dim::quaternion4< T >::getMatrix | ( | matrix4< T > & | Mat | ) | const [inline] |
matrix4<T> sp::dim::quaternion4< T >::getMatrixTransposed | ( | ) | const [inline] |
void sp::dim::quaternion4< T >::getMatrixTransposed | ( | matrix4< T > & | Mat | ) | const [inline] |
quaternion4<T>& sp::dim::quaternion4< T >::normalize | ( | ) | [inline] |
bool sp::dim::quaternion4< T >::operator!= | ( | const quaternion4< T > & | Other | ) | const [inline] |
quaternion4 sp::dim::quaternion4< T >::operator* | ( | const T & | Size | ) | const [inline] |
vector3d<T> sp::dim::quaternion4< T >::operator* | ( | const vector3d< T > & | Vector | ) | const [inline] |
quaternion4<T> sp::dim::quaternion4< T >::operator* | ( | const quaternion4< T > & | Other | ) | const [inline] |
quaternion4& sp::dim::quaternion4< T >::operator*= | ( | const T & | Size | ) | [inline] |
quaternion4<T>& sp::dim::quaternion4< T >::operator*= | ( | const quaternion4< T > & | Other | ) | [inline] |
quaternion4<T> sp::dim::quaternion4< T >::operator+ | ( | const quaternion4< T > & | Other | ) | const [inline] |
quaternion4<T>& sp::dim::quaternion4< T >::operator+= | ( | const quaternion4< T > & | Other | ) | [inline] |
quaternion4<T> sp::dim::quaternion4< T >::operator- | ( | const quaternion4< T > & | Other | ) | const [inline] |
quaternion4<T>& sp::dim::quaternion4< T >::operator-= | ( | const quaternion4< T > & | Other | ) | [inline] |
quaternion4 sp::dim::quaternion4< T >::operator/ | ( | const T & | Size | ) | const [inline] |
quaternion4<T> sp::dim::quaternion4< T >::operator/ | ( | const quaternion4< T > & | Other | ) | const [inline] |
quaternion4& sp::dim::quaternion4< T >::operator/= | ( | const T & | Size | ) | [inline] |
quaternion4<T>& sp::dim::quaternion4< T >::operator/= | ( | const quaternion4< T > & | Other | ) | [inline] |
bool sp::dim::quaternion4< T >::operator< | ( | const quaternion4< T > & | Other | ) | const [inline] |
bool sp::dim::quaternion4< T >::operator<= | ( | const quaternion4< T > & | Other | ) | const [inline] |
quaternion4<T>& sp::dim::quaternion4< T >::operator= | ( | const quaternion4< T > & | Other | ) | [inline] |
bool sp::dim::quaternion4< T >::operator== | ( | const quaternion4< T > & | Other | ) | const [inline] |
bool sp::dim::quaternion4< T >::operator> | ( | const quaternion4< T > & | Other | ) | const [inline] |
bool sp::dim::quaternion4< T >::operator>= | ( | const quaternion4< T > & | Other | ) | const [inline] |
const T sp::dim::quaternion4< T >::operator[] | ( | u32 | i | ) | const [inline] |
T& sp::dim::quaternion4< T >::operator[] | ( | u32 | i | ) | [inline] |
void sp::dim::quaternion4< T >::reset | ( | ) | [inline] |
void sp::dim::quaternion4< T >::set | ( | const T & | NewX, | |
const T & | NewY, | |||
const T & | NewZ, | |||
const T & | NewW | |||
) | [inline] |
void sp::dim::quaternion4< T >::set | ( | const vector3d< T > & | Vector | ) | [inline] |
void sp::dim::quaternion4< T >::set | ( | const vector4d< T > & | Vector | ) | [inline] |
void sp::dim::quaternion4< T >::set | ( | const T & | NewX, | |
const T & | NewY, | |||
const T & | NewZ | |||
) | [inline] |
quaternion4<T>& sp::dim::quaternion4< T >::setAngleAxis | ( | const T & | Angle, | |
const vector3d< T > & | Axis | |||
) | [inline] |
quaternion4& sp::dim::quaternion4< T >::setInverse | ( | ) | [inline] |
void sp::dim::quaternion4< T >::setMatrix | ( | const matrix4< T > & | Mat | ) | [inline] |
void sp::dim::quaternion4< T >::slerp | ( | const quaternion4< T > & | to, | |
const T & | t | |||
) | [inline] |
void sp::dim::quaternion4< T >::slerp | ( | const quaternion4< T > & | from, | |
const quaternion4< T > & | to, | |||
const T & | t | |||
) | [inline] |
T sp::dim::quaternion4< T >::W |
T sp::dim::quaternion4< T >::X |
T sp::dim::quaternion4< T >::Y |
T sp::dim::quaternion4< T >::Z |