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)
 FXQuatf (const FXVec3f &ex, const FXVec3f &ey, const FXVec3f &ez)
 FXQuatf (const FXMat3f &mat)
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
void setAxes (const FXVec3f &ex, const FXVec3f &ey, const FXVec3f &ez)
void getAxes (FXVec3f &ex, FXVec3f &ey, FXVec3f &ez) const
FXVec3f getXAxis () const
FXVec3f getYAxis () const
FXVec3f getZAxis () 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)
FXMat3f toMatrix (const FXQuatf &quat)
FXQuatf fromMatrix (const FXMat3f &mat)

Detailed Description

Single-precision quaternion.


Constructor & Destructor Documentation

FX::FXQuatf::FXQuatf  )  [inline]
 

Construct.

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 FXfloat  v[]  )  [inline]
 

Construct from array of floats.

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).

FX::FXQuatf::FXQuatf const FXVec3f ex,
const FXVec3f ey,
const FXVec3f ez
 

Construct quaternion from axes.

FX::FXQuatf::FXQuatf const FXMat3f mat  ) 
 

Construct quaternion from 3x3 matrix.


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.

void FX::FXQuatf::setAxes const FXVec3f ex,
const FXVec3f ey,
const FXVec3f ez
 

Set quaternion from axes.

void FX::FXQuatf::getAxes FXVec3f ex,
FXVec3f ey,
FXVec3f ez
const
 

Get quaternion axes.

FXVec3f FX::FXQuatf::getXAxis  )  const
 

Obtain local x axis.

FXVec3f FX::FXQuatf::getYAxis  )  const
 

Obtain local y axis.

FXVec3f FX::FXQuatf::getZAxis  )  const
 

Obtain local z axis.


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.

FXVec3f operator * const FXQuatf quat,
const FXVec3f vec
[friend]
 

Rotation of a vector by a quaternion.

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.

FXMat3f toMatrix const FXQuatf quat  )  [friend]
 

Convert quaternion to 3x3 matrix.

FXQuatf fromMatrix const FXMat3f mat  )  [friend]
 

Convert 3x3 matrix to quaternion.

Copyright © 1997-2005 Jeroen van der Zijp