Public Member Functions | Public Attributes

sp::dim::quaternion4< T > Class Template Reference

#include <spDimensionQuaternion.hpp>

List of all members.

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
quaternion4operator/= (const T &Size)
quaternion4 operator* (const T &Size) const
quaternion4operator*= (const T &Size)
const T operator[] (u32 i) const
T & operator[] (u32 i)
dot (const quaternion4< T > &Other) const
quaternion4< T > & normalize ()
quaternion4setInverse ()
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

X
Y
Z
W

template<typename T>
class sp::dim::quaternion4< T >


Constructor & Destructor Documentation

template<typename T>
sp::dim::quaternion4< T >::quaternion4 (  )  [inline]
template<typename T>
sp::dim::quaternion4< T >::quaternion4 ( const T &  x,
const T &  y,
const T &  z 
) [inline]
template<typename T>
sp::dim::quaternion4< T >::quaternion4 ( const T &  x,
const T &  y,
const T &  z,
const T &  w 
) [inline]
template<typename T>
sp::dim::quaternion4< T >::quaternion4 ( const vector3d< T > &  Vec  )  [inline]
template<typename T>
sp::dim::quaternion4< T >::quaternion4 ( const vector4d< T > &  Vec  )  [inline]
template<typename T>
sp::dim::quaternion4< T >::quaternion4 ( const quaternion4< T > &  Other  )  [inline]
template<typename T>
sp::dim::quaternion4< T >::quaternion4 ( const matrix4< T > &  Matrix  )  [inline]
template<typename T>
sp::dim::quaternion4< T >::~quaternion4 (  )  [inline]

Member Function Documentation

template<typename T>
T sp::dim::quaternion4< T >::dot ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
void sp::dim::quaternion4< T >::getAngleAxis ( T &  Angle,
vector3d< T > &  Axis 
) const [inline]
template<typename T>
void sp::dim::quaternion4< T >::getEuler ( vector3d< T > &  Euler  )  const [inline]
template<typename T>
quaternion4 sp::dim::quaternion4< T >::getInverse (  )  const [inline]
template<typename T>
matrix4<T> sp::dim::quaternion4< T >::getMatrix (  )  const [inline]
template<typename T>
void sp::dim::quaternion4< T >::getMatrix ( matrix4< T > &  Mat  )  const [inline]
template<typename T>
matrix4<T> sp::dim::quaternion4< T >::getMatrixTransposed (  )  const [inline]
template<typename T>
void sp::dim::quaternion4< T >::getMatrixTransposed ( matrix4< T > &  Mat  )  const [inline]
template<typename T>
quaternion4<T>& sp::dim::quaternion4< T >::normalize (  )  [inline]
template<typename T>
bool sp::dim::quaternion4< T >::operator!= ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
quaternion4 sp::dim::quaternion4< T >::operator* ( const T &  Size  )  const [inline]
template<typename T>
vector3d<T> sp::dim::quaternion4< T >::operator* ( const vector3d< T > &  Vector  )  const [inline]
template<typename T>
quaternion4<T> sp::dim::quaternion4< T >::operator* ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
quaternion4& sp::dim::quaternion4< T >::operator*= ( const T &  Size  )  [inline]
template<typename T>
quaternion4<T>& sp::dim::quaternion4< T >::operator*= ( const quaternion4< T > &  Other  )  [inline]
template<typename T>
quaternion4<T> sp::dim::quaternion4< T >::operator+ ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
quaternion4<T>& sp::dim::quaternion4< T >::operator+= ( const quaternion4< T > &  Other  )  [inline]
template<typename T>
quaternion4<T> sp::dim::quaternion4< T >::operator- ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
quaternion4<T>& sp::dim::quaternion4< T >::operator-= ( const quaternion4< T > &  Other  )  [inline]
template<typename T>
quaternion4 sp::dim::quaternion4< T >::operator/ ( const T &  Size  )  const [inline]
template<typename T>
quaternion4<T> sp::dim::quaternion4< T >::operator/ ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
quaternion4& sp::dim::quaternion4< T >::operator/= ( const T &  Size  )  [inline]
template<typename T>
quaternion4<T>& sp::dim::quaternion4< T >::operator/= ( const quaternion4< T > &  Other  )  [inline]
template<typename T>
bool sp::dim::quaternion4< T >::operator< ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
bool sp::dim::quaternion4< T >::operator<= ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
quaternion4<T>& sp::dim::quaternion4< T >::operator= ( const quaternion4< T > &  Other  )  [inline]
template<typename T>
bool sp::dim::quaternion4< T >::operator== ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
bool sp::dim::quaternion4< T >::operator> ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
bool sp::dim::quaternion4< T >::operator>= ( const quaternion4< T > &  Other  )  const [inline]
template<typename T>
const T sp::dim::quaternion4< T >::operator[] ( u32  i  )  const [inline]
template<typename T>
T& sp::dim::quaternion4< T >::operator[] ( u32  i  )  [inline]
template<typename T>
void sp::dim::quaternion4< T >::reset (  )  [inline]
template<typename T>
void sp::dim::quaternion4< T >::set ( const T &  NewX,
const T &  NewY,
const T &  NewZ,
const T &  NewW 
) [inline]
template<typename T>
void sp::dim::quaternion4< T >::set ( const vector3d< T > &  Vector  )  [inline]
template<typename T>
void sp::dim::quaternion4< T >::set ( const vector4d< T > &  Vector  )  [inline]
template<typename T>
void sp::dim::quaternion4< T >::set ( const T &  NewX,
const T &  NewY,
const T &  NewZ 
) [inline]
template<typename T>
quaternion4<T>& sp::dim::quaternion4< T >::setAngleAxis ( const T &  Angle,
const vector3d< T > &  Axis 
) [inline]
template<typename T>
quaternion4& sp::dim::quaternion4< T >::setInverse (  )  [inline]
template<typename T>
void sp::dim::quaternion4< T >::setMatrix ( const matrix4< T > &  Mat  )  [inline]
template<typename T>
void sp::dim::quaternion4< T >::slerp ( const quaternion4< T > &  to,
const T &  t 
) [inline]
template<typename T>
void sp::dim::quaternion4< T >::slerp ( const quaternion4< T > &  from,
const quaternion4< T > &  to,
const T &  t 
) [inline]

Member Data Documentation

template<typename T>
T sp::dim::quaternion4< T >::W
template<typename T>
T sp::dim::quaternion4< T >::X
template<typename T>
T sp::dim::quaternion4< T >::Y
template<typename T>
T sp::dim::quaternion4< T >::Z

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines