Public Member Functions | Public Attributes
TomGine::tgQuaternion Class Reference

Class tgQuaternion. More...

#include <tgQuaternion.h>

List of all members.

Public Member Functions

void fromAxis (const vec3 &v, float angle)
void fromEuler (float pitch, float yaw, float roll)
void fromMatrix (mat3 m)
void fromMatrix (mat4 m)
void getAxisAngle (vec3 &axis, float &angle) const
tgQuaternion getConjugate () const
mat3 getMatrix3 () const
mat4 getMatrix4 () const
void normalise ()
tgQuaternion operator* (const tgQuaternion &rq)
tgQuaternion operator* (const float f)
vec3 operator* (const vec3 &vec)
tgQuaternion operator+ (const tgQuaternion &q2) const
tgQuaternion operator- (const tgQuaternion &q2) const
void print () const
 tgQuaternion ()
 tgQuaternion (float x, float y, float z, float w)

Public Attributes

float w
float x
float y
float z

Detailed Description

Class tgQuaternion.

Definition at line 21 of file tgQuaternion.h.


Constructor & Destructor Documentation

Definition at line 7 of file tgQuaternion.cpp.

tgQuaternion::tgQuaternion ( float  x,
float  y,
float  z,
float  w 
)

Definition at line 14 of file tgQuaternion.cpp.


Member Function Documentation

void tgQuaternion::fromAxis ( const vec3 v,
float  angle 
)

Definition at line 96 of file tgQuaternion.cpp.

void tgQuaternion::fromEuler ( float  pitch,
float  yaw,
float  roll 
)

Definition at line 111 of file tgQuaternion.cpp.

Definition at line 147 of file tgQuaternion.cpp.

Definition at line 136 of file tgQuaternion.cpp.

void tgQuaternion::getAxisAngle ( vec3 axis,
float &  angle 
) const

Definition at line 218 of file tgQuaternion.cpp.

Definition at line 38 of file tgQuaternion.cpp.

Definition at line 191 of file tgQuaternion.cpp.

Definition at line 158 of file tgQuaternion.cpp.

Definition at line 24 of file tgQuaternion.cpp.

tgQuaternion tgQuaternion::operator* ( const tgQuaternion rq)

Definition at line 65 of file tgQuaternion.cpp.

tgQuaternion tgQuaternion::operator* ( const float  f)

Definition at line 73 of file tgQuaternion.cpp.

vec3 tgQuaternion::operator* ( const vec3 vec)

Definition at line 79 of file tgQuaternion.cpp.

tgQuaternion tgQuaternion::operator+ ( const tgQuaternion q2) const

Definition at line 43 of file tgQuaternion.cpp.

tgQuaternion tgQuaternion::operator- ( const tgQuaternion q2) const

Definition at line 54 of file tgQuaternion.cpp.

void tgQuaternion::print ( ) const

Definition at line 228 of file tgQuaternion.cpp.


Member Data Documentation

Definition at line 27 of file tgQuaternion.h.

Definition at line 27 of file tgQuaternion.h.

Definition at line 27 of file tgQuaternion.h.

Definition at line 27 of file tgQuaternion.h.


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


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:27