math::quat< T > Class Template Reference

List of all members.

Public Member Functions

 quat (double nx, double ny, double nz, double nw)
 quat (double angleRadians, vec3< double > const &axis)
 quat (math::quat< T > const &v)
 quat (math::vec3< double > const &u, math::vec3< double > const &v)
 quat (mat44< T > const &m)
void loadZero ()
bool isFinite () const
bool isUnit () const
bool isSane () const
void toRadiansAndUnitAxis (double &angle, vec3< double > &axis) const
double getAngle () const
double getAngle (const math::quat< T > &q) const
double magnitudeSquared () const
double dot (const math::quat< T > &v) const
math::quat< T > getNormalized () const
double magnitude () const
double normalize ()
math::quat< T > getConjugate () const
math::vec3< double > getImaginaryPart () const
math::vec3< double > getBasisVector0 () const
math::vec3< double > getBasisVector1 () const
math::vec3< double > getBasisVector2 () const
const math::vec3< double > rotate (const math::vec3< double > &v) const
const math::vec3< double > rotateInv (const math::vec3< double > &v) const
math::quat< T > & operator= (const math::quat< T > &p)
math::quat< T > & operator*= (const math::quat< T > &q)
math::quat< T > & operator+= (const math::quat< T > &q)
math::quat< T > & operator-= (const math::quat< T > &q)
math::quat< T > & operator*= (const double s)
math::quat< T > operator* (const math::quat< T > &q) const
math::quat< T > operator+ (const math::quat< T > &q) const
math::quat< T > operator- () const
math::quat< T > operator- (const math::quat< T > &q) const
math::quat< T > operator* (double r) const
math::quat< T > createIdentity ()
void print ()
math::vec3< double > getOmega (double dt)
 quat (T nx, T ny, T nz, T nw)
 quat (T angleRadians, vec3< T > const &axis)
 quat (vec3< T > const &, vec3< T > const &)
quat< T > slerp (math::quat< T > q1, float u)
 returns true if finite and magnitude is reasonably close to unit to allow for some accumulation of error vs isValid
void toRadiansAndUnitAxis (T &angle, vec3< T > &axis) const
 converts this quaternion to angle-axis representation
const vec3< T > rotate (const vec3< T > &v) const
const vec3< T > rotateInv (const vec3< T > &v) const
quat< T > & operator*= (const T s)
quat< T > operator* (T r) const
vec3< T > getOmega (T dt)

Public Attributes

w
x
y
z

template<typename T>
class math::quat< T >


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions

Generated on 24 Apr 2014 for math by  doxygen 1.6.1