![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXQuat.h>
Inheritance diagram for FX::FXQuat:
Public Methods | |
FXQuat () | |
Constructors. | |
FXQuat (const FXVec &axis, FXfloat phi=0.0) | |
Construct from axis and angle. | |
FXQuat (FXfloat roll, FXfloat pitch, FXfloat yaw) | |
Construct from euler angles yaw (z), pitch (y), and roll (x). | |
FXQuat (FXfloat x, FXfloat y, FXfloat z, FXfloat w) | |
Construct from components. | |
FXQuat & | adjust () |
Adjust quaternion length. | |
void | setRollPitchYaw (FXfloat roll, FXfloat pitch, FXfloat yaw) |
Set quaternion from yaw (z), pitch (y), and roll (x). | |
void | getRollPitchYaw (FXfloat &roll, FXfloat &pitch, FXfloat &yaw) |
Obtain yaw, pitch, and roll. | |
Friends | |
FXAPI FXQuat | exp (const FXQuat &q) |
Exponentiate quaternion. | |
FXAPI FXQuat | log (const FXQuat &q) |
Take logarithm of quaternion. | |
FXAPI FXQuat | invert (const FXQuat &q) |
Invert quaternion. | |
FXAPI FXQuat | conj (const FXQuat &q) |
Conjugate quaternion. | |
FXAPI FXQuat | operator * (const FXQuat &p, const FXQuat &q) |
Multiply quaternions. | |
FXAPI FXQuat | arc (const FXVec &a, const FXVec &b) |
Construct quaternion from arc a->b on unit sphere. | |
FXAPI FXQuat | lerp (const FXQuat &u, const FXQuat &v, FXfloat f) |
Spherical lerp. |