Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXQuatf Class Reference

Single-precision quaternion. More...

#include <FXQuatf.h>

Inheritance diagram for FX::FXQuatf:

FX::FXVec4f List of all members.

Public Member Functions

 FXQuatf ()
 FXQuatf (const FXQuatf &q)
 FXQuatf (FXfloat xx, FXfloat yy, FXfloat zz, FXfloat ww)
 FXQuatf (const FXfloat v[])
 FXQuatf (const FXVec3f &axis, FXfloat phi=0.0f)
 FXQuatf (FXfloat roll, FXfloat pitch, FXfloat yaw)
FXQuatfadjust ()
void setAxisAngle (const FXVec3f &axis, FXfloat phi=0.0f)
void getAxisAngle (FXVec3f &axis, FXfloat &phi) const
void setRollPitchYaw (FXfloat roll, FXfloat pitch, FXfloat yaw)
void getRollPitchYaw (FXfloat &roll, FXfloat &pitch, FXfloat &yaw) const

Friends

FXQuatf exp (const FXQuatf &q)
FXQuatf log (const FXQuatf &q)
FXQuatf invert (const FXQuatf &q)
FXQuatf unitinvert (const FXQuatf &q)
FXQuatf conj (const FXQuatf &q)
FXQuatf operator * (const FXQuatf &p, const FXQuatf &q)
FXVec3f operator * (const FXQuatf &quat, const FXVec3f &vec)
FXQuatf arc (const FXVec3f &a, const FXVec3f &b)
FXQuatf lerp (const FXQuatf &u, const FXQuatf &v, FXfloat f)

Detailed Description

Single-precision quaternion.


Constructor & Destructor Documentation

FX::FXQuatf::FXQuatf  )  [inline]
 

Constructors.

FX::FXQuatf::FXQuatf const FXQuatf q  )  [inline]
 

Copy constructor.

FX::FXQuatf::FXQuatf FXfloat  xx,
FXfloat  yy,
FXfloat  zz,
FXfloat  ww
[inline]
 

Construct from components.

FX::FXQuatf::FXQuatf const FXVec3f axis,
FXfloat  phi = 0.0f
 

Construct from axis and angle.

FX::FXQuatf::FXQuatf FXfloat  roll,
FXfloat  pitch,
FXfloat  yaw
 

Construct from euler angles yaw (z), pitch (y), and roll (x).


Member Function Documentation

FXQuatf& FX::FXQuatf::adjust  ) 
 

Adjust quaternion length.

void FX::FXQuatf::setAxisAngle const FXVec3f axis,
FXfloat  phi = 0.0f
 

Set quaternion from axis and angle.

void FX::FXQuatf::getAxisAngle FXVec3f axis,
FXfloat &  phi
const
 

Obtain axis and angle from quaternion.

void FX::FXQuatf::setRollPitchYaw FXfloat  roll,
FXfloat  pitch,
FXfloat  yaw
 

Set quaternion from yaw (z), pitch (y), and roll (x).

void FX::FXQuatf::getRollPitchYaw FXfloat &  roll,
FXfloat &  pitch,
FXfloat &  yaw
const
 

Obtain yaw, pitch, and roll from quaternion.


Friends And Related Function Documentation

FXQuatf exp const FXQuatf q  )  [friend]
 

Exponentiate quaternion.

FXQuatf log const FXQuatf q  )  [friend]
 

Take logarithm of quaternion.

FXQuatf invert const FXQuatf q  )  [friend]
 

Invert quaternion.

FXQuatf unitinvert const FXQuatf q  )  [friend]
 

Invert unit quaternion.

FXQuatf conj const FXQuatf q  )  [friend]
 

Conjugate quaternion.

FXQuatf operator * const FXQuatf p,
const FXQuatf q
[friend]
 

Multiply quaternions.

FXQuatf arc const FXVec3f a,
const FXVec3f b
[friend]
 

Construct quaternion from arc a->b on unit sphere.

FXQuatf lerp const FXQuatf u,
const FXQuatf v,
FXfloat  f
[friend]
 

Spherical lerp.

Copyright © 1997-2004 Jeroen van der Zijp