Quaternion (single-precision version)
Inheritance:
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
Inherited from FXHVec:
Public Methods
-
FXfloat& operator[](FXint i)
-
const FXfloat& operator[](FXint i) const
-
FXHVec& operator=(FXColor color)
-
FXHVec& operator=(const FXHVec& w)
-
FXHVec& operator+=(const FXHVec& a)
-
operator FXfloat*()
-
operator FXColor() const
Protected Fields
-
FXfloat v[4]
Documentation
Quaternion (single-precision version)
- 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
- This class has no child classes.
- Friends:
- FXQuat exp(const FXQuat& q)
FXQuat log(const FXQuat& q)
FXQuat invert(const FXQuat& q)
FXQuat conj(const FXQuat& q)
FXQuat operator*(const FXQuat& p,const FXQuat& q)
FXQuat arc(const FXVec& a,const FXVec& b)
FXQuat lerp(const FXQuat& u,const FXQuat& v,FXfloat f)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.