 |
torcs - 1.2.2 |
 |
Quaternion Class Reference
#include <Quaternion.h>
Inheritance diagram for Quaternion:
[legend]Collaboration diagram for Quaternion:
[legend]List of all members.
|
Public Member Functions |
| Quaternion () |
| Quaternion (const float v[4]) |
| Quaternion (const double v[4]) |
| Quaternion (Scalar x, Scalar y, Scalar z, Scalar w) |
| Quaternion (const Vector &axis, Scalar angle) |
| Quaternion (Scalar yaw, Scalar pitch, Scalar roll) |
void | setRotation (const Vector &axis, Scalar angle) |
void | setEuler (Scalar yaw, Scalar pitch, Scalar roll) |
Quaternion & | operator+= (const Quaternion &q) |
Quaternion & | operator-= (const Quaternion &q) |
Quaternion & | operator *= (const Quaternion &q) |
Quaternion & | operator *= (Scalar s) |
Quaternion & | operator/= (Scalar s) |
Scalar | length2 () const |
Scalar | length () const |
bool | approxZero () const |
void | normalize () |
Quaternion | normalized () const |
void | conjugate () |
Quaternion | conjugate () const |
void | invert () |
Quaternion | inverse () const |
| Quaternion () |
| Quaternion (const float v[4]) |
| Quaternion (const double v[4]) |
| Quaternion (Scalar x, Scalar y, Scalar z, Scalar w) |
| Quaternion (const Vector &axis, Scalar angle) |
| Quaternion (Scalar yaw, Scalar pitch, Scalar roll) |
void | setRotation (const Vector &axis, Scalar angle) |
void | setEuler (Scalar yaw, Scalar pitch, Scalar roll) |
Quaternion & | operator+= (const Quaternion &q) |
Quaternion & | operator-= (const Quaternion &q) |
Quaternion & | operator *= (const Quaternion &q) |
Quaternion & | operator *= (Scalar s) |
Quaternion & | operator/= (Scalar s) |
Scalar | length2 () const |
Scalar | length () const |
bool | approxZero () const |
void | normalize () |
Quaternion | normalized () const |
void | conjugate () |
Quaternion | conjugate () const |
void | invert () |
Quaternion | inverse () const |
Static Public Member Functions |
Quaternion | random () |
Quaternion | random () |
Constructor & Destructor Documentation
Quaternion::Quaternion |
( |
|
) |
[inline] |
|
Quaternion::Quaternion |
( |
const float |
v[4] |
) |
[inline] |
|
Quaternion::Quaternion |
( |
const double |
v[4] |
) |
[inline] |
|
Quaternion::Quaternion |
( |
Scalar |
x, |
|
|
Scalar |
y, |
|
|
Scalar |
z, |
|
|
Scalar |
w |
|
) |
[inline] |
|
Quaternion::Quaternion |
( |
const Vector & |
axis, |
|
|
Scalar |
angle |
|
) |
[inline] |
|
Here is the call graph for this function:
Quaternion::Quaternion |
( |
Scalar |
yaw, |
|
|
Scalar |
pitch, |
|
|
Scalar |
roll |
|
) |
[inline] |
|
Here is the call graph for this function:
Quaternion::Quaternion |
( |
|
) |
[inline] |
|
Quaternion::Quaternion |
( |
const float |
v[4] |
) |
[inline] |
|
Quaternion::Quaternion |
( |
const double |
v[4] |
) |
[inline] |
|
Quaternion::Quaternion |
( |
Scalar |
x, |
|
|
Scalar |
y, |
|
|
Scalar |
z, |
|
|
Scalar |
w |
|
) |
[inline] |
|
Quaternion::Quaternion |
( |
const Vector & |
axis, |
|
|
Scalar |
angle |
|
) |
[inline] |
|
Here is the call graph for this function:
Quaternion::Quaternion |
( |
Scalar |
yaw, |
|
|
Scalar |
pitch, |
|
|
Scalar |
roll |
|
) |
[inline] |
|
Here is the call graph for this function:
Member Function Documentation
bool Quaternion::approxZero |
( |
|
) |
const |
|
bool Quaternion::approxZero |
( |
|
) |
const [inline] |
|
Here is the call graph for this function:
void Quaternion::conjugate |
( |
|
) |
|
|
Quaternion Quaternion::conjugate |
( |
|
) |
const [inline] |
|
Here is the call graph for this function:
void Quaternion::conjugate |
( |
|
) |
[inline] |
|
Here is the call graph for this function:
void Quaternion::invert |
( |
|
) |
|
|
void Quaternion::invert |
( |
|
) |
[inline] |
|
Here is the call graph for this function:
Scalar Quaternion::length |
( |
|
) |
const |
|
Scalar Quaternion::length |
( |
|
) |
const [inline] |
|
Here is the call graph for this function:
Scalar Quaternion::length2 |
( |
|
) |
const |
|
Scalar Quaternion::length2 |
( |
|
) |
const [inline] |
|
Here is the call graph for this function:
void Quaternion::normalize |
( |
|
) |
|
|
void Quaternion::normalize |
( |
|
) |
[inline] |
|
Here is the call graph for this function:
Quaternion Quaternion::normalized |
( |
|
) |
const [inline] |
|
Here is the call graph for this function:
Quaternion & Quaternion::operator *= |
( |
Scalar |
s |
) |
[inline] |
|
Here is the call graph for this function:
Quaternion & Quaternion::operator/= |
( |
Scalar |
s |
) |
[inline] |
|
Here is the call graph for this function:
Quaternion Quaternion::random |
( |
|
) |
[inline, static] |
|
Here is the call graph for this function:
void Quaternion::setEuler |
( |
Scalar |
yaw, |
|
|
Scalar |
pitch, |
|
|
Scalar |
roll |
|
) |
[inline] |
|
Here is the call graph for this function:
void Quaternion::setEuler |
( |
Scalar |
yaw, |
|
|
Scalar |
pitch, |
|
|
Scalar |
roll |
|
) |
[inline] |
|
Here is the call graph for this function:
void Quaternion::setRotation |
( |
const Vector & |
axis, |
|
|
Scalar |
angle |
|
) |
[inline] |
|
Here is the call graph for this function:
void Quaternion::setRotation |
( |
const Vector & |
axis, |
|
|
Scalar |
angle |
|
) |
[inline] |
|
Here is the call graph for this function:
The documentation for this class was generated from the following files:
Generated at Thu Feb 26 21:54:12 2004 for torcs by
1.3.3 written by Dimitri van Heesch,
© 1997-1999
TORCS © Eric Espié 1999, 2002.