RenderTools::Quat Class Reference

#include <Matrix.h>

List of all members.

Public Member Functions

 Quat (float v0=0.0f, float v1=0.0f, float v2=0.0f, float v3=0.0f)
 --------------------------------Quat-------------------------------
 Quat (const Mat3 &mat)
 Quat (const float *v)
bool operator== (const Quat &) const
bool operator!= (const Quat &) const
Quat operator+ (const Quat &) const
Quat operator- (const Quat &) const
Quat operator* (const Quat &) const
Quat operator* (float s) const
Quat operator/ (float s) const
Quat operator- () const
const float & operator[] (const int) const
const float * operator* (void) const
float & operator[] (int index)
Quatoperator+= (const Quat &)
Quatoperator-= (const Quat &)
Quatoperator*= (float scalar)
Quatoperator/= (float scalar)
Vec2 xy (void) const
Vec2 zw (void) const
Vec3 xyz (void) const
const float & getElement (int index) const
float hyp (void) const
float len (void) const
void normalize (void)
Quat normalized (void) const
float dot (const Quat &) const
Quat inverse (void) const
Quat conjugate (void) const
Quat exp (void) const
Quat log (void) const
bool equals (const Quat &compare, float epsilon=0.0f) const
bool equals (const float *compare, float epsilon=0.0f) const
Mat3 toMat3 (void) const
void toAxisAngle (Vec3 &axis, float &radians) const
float & getElement (int index)

Static Public Member Functions

static Quat fromMat3 (const Mat3 &)
static Quat fromAxisAngle (const Vec3 &axis, float radians)


Detailed Description

Definition at line 360 of file Matrix.h.


Constructor & Destructor Documentation

RenderTools::Quat::Quat ( float  v0 = 0.0f,
float  v1 = 0.0f,
float  v2 = 0.0f,
float  v3 = 0.0f 
)

--------------------------------Quat-------------------------------

Definition at line 1395 of file Matrix.cpp.

RenderTools::Quat::Quat ( const Mat3 mat  ) 

RenderTools::Quat::Quat ( const float *  v  ) 

Definition at line 1402 of file Matrix.cpp.


Member Function Documentation

Quat RenderTools::Quat::conjugate ( void   )  const

Definition at line 1735 of file Matrix.cpp.

float RenderTools::Quat::dot ( const Quat q  )  const

Definition at line 1679 of file Matrix.cpp.

bool RenderTools::Quat::equals ( const float *  compare,
float  epsilon = 0.0f 
) const

Definition at line 1422 of file Matrix.cpp.

bool RenderTools::Quat::equals ( const Quat compare,
float  epsilon = 0.0f 
) const

Definition at line 1418 of file Matrix.cpp.

Quat RenderTools::Quat::exp ( void   )  const

Definition at line 1739 of file Matrix.cpp.

Quat RenderTools::Quat::fromAxisAngle ( const Vec3 axis,
float  radians 
) [static]

Definition at line 1637 of file Matrix.cpp.

Quat RenderTools::Quat::fromMat3 ( const Mat3 rot  )  [static]

Definition at line 1570 of file Matrix.cpp.

float& RenderTools::Quat::getElement ( int  index  ) 

const float& RenderTools::Quat::getElement ( int  index  )  const

float RenderTools::Quat::hyp ( void   )  const

Definition at line 1674 of file Matrix.cpp.

Quat RenderTools::Quat::inverse ( void   )  const

Definition at line 1716 of file Matrix.cpp.

float RenderTools::Quat::len ( void   )  const

Definition at line 1669 of file Matrix.cpp.

Quat RenderTools::Quat::log ( void   )  const

Definition at line 1765 of file Matrix.cpp.

void RenderTools::Quat::normalize ( void   ) 

Definition at line 1684 of file Matrix.cpp.

Quat RenderTools::Quat::normalized ( void   )  const

Definition at line 1699 of file Matrix.cpp.

bool RenderTools::Quat::operator!= ( const Quat q  )  const

Definition at line 1443 of file Matrix.cpp.

const float * RenderTools::Quat::operator* ( void   )  const

Definition at line 1566 of file Matrix.cpp.

Quat RenderTools::Quat::operator* ( float  s  )  const

Definition at line 1494 of file Matrix.cpp.

Quat RenderTools::Quat::operator* ( const Quat q  )  const

Definition at line 1463 of file Matrix.cpp.

Quat & RenderTools::Quat::operator*= ( float  scalar  ) 

Definition at line 1542 of file Matrix.cpp.

Quat RenderTools::Quat::operator+ ( const Quat q  )  const

Definition at line 1447 of file Matrix.cpp.

Quat & RenderTools::Quat::operator+= ( const Quat q  ) 

Definition at line 1528 of file Matrix.cpp.

Quat RenderTools::Quat::operator- ( void   )  const

Definition at line 1520 of file Matrix.cpp.

Quat RenderTools::Quat::operator- ( const Quat q  )  const

Definition at line 1455 of file Matrix.cpp.

Quat & RenderTools::Quat::operator-= ( const Quat q  ) 

Definition at line 1535 of file Matrix.cpp.

Quat RenderTools::Quat::operator/ ( float  s  )  const

Definition at line 1502 of file Matrix.cpp.

Quat & RenderTools::Quat::operator/= ( float  scalar  ) 

Definition at line 1549 of file Matrix.cpp.

bool RenderTools::Quat::operator== ( const Quat q  )  const

Definition at line 1439 of file Matrix.cpp.

float & RenderTools::Quat::operator[] ( int  index  ) 

Definition at line 1431 of file Matrix.cpp.

const float & RenderTools::Quat::operator[] ( const int  index  )  const

Definition at line 1435 of file Matrix.cpp.

void RenderTools::Quat::toAxisAngle ( Vec3 axis,
float &  radians 
) const

Definition at line 1648 of file Matrix.cpp.

Mat3 RenderTools::Quat::toMat3 ( void   )  const

Definition at line 1610 of file Matrix.cpp.

Vec2 RenderTools::Quat::xy ( void   )  const

Definition at line 1406 of file Matrix.cpp.

Vec3 RenderTools::Quat::xyz ( void   )  const

Definition at line 1414 of file Matrix.cpp.

Vec2 RenderTools::Quat::zw ( void   )  const

Definition at line 1410 of file Matrix.cpp.


The documentation for this class was generated from the following files:

Generated on Wed Jan 26 00:15:36 2011 for RenderTools by  doxygen 1.5.8