GameEngine::Quaternion Class Reference

#include <Quaternion.h>

Collaboration diagram for GameEngine::Quaternion:

Collaboration graph
[legend]
List of all members.

Detailed Description

Quaternion class

Definition at line 32 of file Quaternion.h.

Public Member Functions

 Quaternion ()
 Quaternion (const Quaternion &q)
 Quaternion (Real w, Real x, Real y, Real z)
 ~Quaternion ()
Quaternion operator+ (const Quaternion &q) const
Quaternion operator- (const Quaternion &q) const
Vector3 operator * (const Vector3 &v) const
Quaternionnormalise ()
Real getYawDeg () const
Real getPitchDeg () const
Real getRollDeg () const
Real getYawRad () const
Real getPitchRad () const
Real getRollRad () const
 operator Ogre::Quaternion ()
 operator opal::Quaternion ()

Static Public Member Functions

static Quaternion quatFromOgre (Ogre::Quaternion q)
static Quaternion quatFromOpal (opal::Quaternion q)

Public Attributes

Real mW
Real mX
Real mY
Real mZ

Static Public Attributes

static const Quaternion IDENTITY


Constructor & Destructor Documentation

GameEngine::Quaternion::Quaternion (  ) 

Definition at line 8 of file Quaternion.cpp.

GameEngine::Quaternion::Quaternion ( const Quaternion q  ) 

Definition at line 18 of file Quaternion.cpp.

GameEngine::Quaternion::Quaternion ( Real  w,
Real  x,
Real  y,
Real  z 
)

Definition at line 28 of file Quaternion.cpp.

GameEngine::Quaternion::~Quaternion (  ) 

Definition at line 38 of file Quaternion.cpp.


Member Function Documentation

Quaternion GameEngine::Quaternion::operator+ ( const Quaternion q  )  const

Quaternion GameEngine::Quaternion::operator- ( const Quaternion q  )  const

Vector3 GameEngine::Quaternion::operator * ( const Vector3 v  )  const

Definition at line 108 of file Quaternion.cpp.

Quaternion & GameEngine::Quaternion::normalise (  ) 

Definition at line 44 of file Quaternion.cpp.

Real GameEngine::Quaternion::getYawDeg (  )  const

Definition at line 68 of file Quaternion.cpp.

Real GameEngine::Quaternion::getPitchDeg (  )  const

Definition at line 82 of file Quaternion.cpp.

Real GameEngine::Quaternion::getRollDeg (  )  const

Definition at line 94 of file Quaternion.cpp.

Real GameEngine::Quaternion::getYawRad (  )  const

Definition at line 75 of file Quaternion.cpp.

Real GameEngine::Quaternion::getPitchRad (  )  const

Definition at line 87 of file Quaternion.cpp.

Real GameEngine::Quaternion::getRollRad (  )  const

Definition at line 100 of file Quaternion.cpp.

GameEngine::Quaternion::operator Ogre::Quaternion (  )  [inline]

Definition at line 69 of file Quaternion.h.

GameEngine::Quaternion::operator opal::Quaternion (  )  [inline]

Definition at line 70 of file Quaternion.h.

static Quaternion GameEngine::Quaternion::quatFromOgre ( Ogre::Quaternion  q  )  [inline, static]

Definition at line 72 of file Quaternion.h.

static Quaternion GameEngine::Quaternion::quatFromOpal ( opal::Quaternion  q  )  [inline, static]

Definition at line 73 of file Quaternion.h.


Member Data Documentation

Real GameEngine::Quaternion::mW

Definition at line 77 of file Quaternion.h.

Real GameEngine::Quaternion::mX

Definition at line 77 of file Quaternion.h.

Real GameEngine::Quaternion::mY

Definition at line 77 of file Quaternion.h.

Real GameEngine::Quaternion::mZ

Definition at line 77 of file Quaternion.h.

const Quaternion GameEngine::Quaternion::IDENTITY [static]

Definition at line 81 of file Quaternion.h.


The documentation for this class was generated from the following files:
Generated on Thu Apr 19 09:49:09 2007 for GameEngine by  doxygen 1.5.2