![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXQuatf.h>
Single-precision quaternion.
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 & | fr, |
const FXVec3f & | to | ||
) |
Construct quaternion from two unit vectors.
FX::FXQuatf::FXQuatf | ( | const FXVec3f & | ex, |
const FXVec3f & | ey, | ||
const FXVec3f & | ez | ||
) |
Construct quaternion from three axes.
FX::FXQuatf::FXQuatf | ( | const FXMat3f & | mat | ) |
Construct quaternion from 3x3 matrix.
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 roll (x), pitch (y), yaw (z)
void FX::FXQuatf::getRollPitchYaw | ( | FXfloat & | roll, |
FXfloat & | pitch, | ||
FXfloat & | yaw | ||
) | const |
void FX::FXQuatf::setYawPitchRoll | ( | FXfloat | yaw, |
FXfloat | pitch, | ||
FXfloat | roll | ||
) |
Set quaternion from yaw (z), pitch (y), roll (x)
void FX::FXQuatf::getYawPitchRoll | ( | FXfloat & | yaw, |
FXfloat & | pitch, | ||
FXfloat & | roll | ||
) | const |
void FX::FXQuatf::setRollYawPitch | ( | FXfloat | roll, |
FXfloat | yaw, | ||
FXfloat | pitch | ||
) |
Set quaternion from roll (x), yaw (z), pitch (y)
void FX::FXQuatf::getRollYawPitch | ( | FXfloat & | roll, |
FXfloat & | yaw, | ||
FXfloat & | pitch | ||
) | const |
void FX::FXQuatf::setPitchRollYaw | ( | FXfloat | pitch, |
FXfloat | roll, | ||
FXfloat | yaw | ||
) |
Set quaternion from pitch (y), roll (x),yaw (z)
void FX::FXQuatf::getPitchRollYaw | ( | FXfloat & | pitch, |
FXfloat & | roll, | ||
FXfloat & | yaw | ||
) | const |
void FX::FXQuatf::setPitchYawRoll | ( | FXfloat | pitch, |
FXfloat | yaw, | ||
FXfloat | roll | ||
) |
Set quaternion from pitch (y), yaw (z), roll (x)
void FX::FXQuatf::getPitchYawRoll | ( | FXfloat & | pitch, |
FXfloat & | yaw, | ||
FXfloat & | roll | ||
) | const |
void FX::FXQuatf::setYawRollPitch | ( | FXfloat | yaw, |
FXfloat | roll, | ||
FXfloat | pitch | ||
) |
Set quaternion from yaw (z), roll (x), pitch (y)
void FX::FXQuatf::getYawRollPitch | ( | FXfloat & | yaw, |
FXfloat & | roll, | ||
FXfloat & | pitch | ||
) | const |
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.
FXQuatf FX::FXQuatf::exp | ( | ) | const |
Exponentiate quaternion.
FXQuatf FX::FXQuatf::log | ( | ) | const |
Take logarithm of quaternion.
FXQuatf FX::FXQuatf::invert | ( | ) | const |
Invert quaternion.
FXQuatf FX::FXQuatf::unitinvert | ( | ) | const |
Invert unit quaternion.
FXQuatf FX::FXQuatf::conj | ( | ) | const |
Conjugate quaternion.
FXQuatf& FX::FXQuatf::arc | ( | const FXVec3f & | a, |
const FXVec3f & | b | ||
) |
Construct quaternion from arc a->b on unit sphere.
FXQuatf& FX::FXQuatf::lerp | ( | const FXQuatf & | u, |
const FXQuatf & | v, | ||
FXfloat | f | ||
) |
Spherical lerp.
![]() |