|
ALBA
|
#include <albaQuaternion.h>
Static Public Member Functions | |
| static albaQuaternion | Slerp (albaQuaternion &a, albaQuaternion &b, double t) |
Protected Attributes | |
| double | m_W |
| double | m_X |
| double | m_Y |
| double | m_Z |
A quaternion.
This quaternion class is generic and may be non-unit, however most anticipated uses of quaternions are typically unit cases representing a rotation 2*acos(w) about the axis (x,y,z).
Definition at line 35 of file albaQuaternion.h.
| albaQuaternion::albaQuaternion | ( | ) |
Default constructor.
| albaQuaternion::albaQuaternion | ( | double | w, |
| double | x, | ||
| double | y, | ||
| double | z | ||
| ) |
Constructor quaternion from real component w and imaginary x,y,z.
| albaQuaternion::albaQuaternion | ( | double | angle, |
| albaVect3d & | axis | ||
| ) |
Construct quaternion from angle - axis.
| albaQuaternion::albaQuaternion | ( | albaMatrix & | matr | ) |
Construct quaternion from rotation albaMatrix.
| albaMatrix albaQuaternion::ToMatrix | ( | ) |
Convert quaternion to albaMatrix.
| void albaQuaternion::AngleAxis | ( | double & | angle, |
| albaVect3d & | axis | ||
| ) |
Convert quaternion to angle - axis.
| void albaQuaternion::Zero | ( | ) |
Set quaternion to zero.
| void albaQuaternion::Identity | ( | ) |
Set quaternion to identity.
| void albaQuaternion::Add | ( | albaQuaternion & | q | ) |
Add another quaternion to this quaternion.
| void albaQuaternion::Subtract | ( | albaQuaternion & | q | ) |
Subtract another quaternion from this quaternion.
| void albaQuaternion::Multiply | ( | double | s | ) |
Multiply this quaternion by a scalar.
| void albaQuaternion::Divide | ( | double | s | ) |
Divide this quaternion by a scalar.
| void albaQuaternion::Multiply | ( | albaQuaternion & | q | ) |
Multiply this quaternion with another quaternion.
| void albaQuaternion::Multiply | ( | albaQuaternion & | q, |
| albaQuaternion & | result | ||
| ) |
Multiply this quaternion with another quaternion and store result in parameter.
| albaQuaternion albaQuaternion::Dot | ( | albaQuaternion & | q | ) |
Dot product of two quaternions.
| void albaQuaternion::Dot | ( | albaQuaternion & | q, |
| albaQuaternion & | result | ||
| ) |
Dot product of two quaternions writing result to parameter.
| albaQuaternion albaQuaternion::Conjugate | ( | ) |
Calculate conjugate of quaternion.
| void albaQuaternion::Conjugate | ( | albaQuaternion & | result | ) |
Calculate conjugate of quaternion and store result in parameter.
| double albaQuaternion::GetLength | ( | ) |
Calculate and returns the length of quaternion.
| double albaQuaternion::GetNorm | ( | ) |
Calculate and returns the norm of quaternion.
| void albaQuaternion::Normalize | ( | ) |
Normalize the quaternion.
| bool albaQuaternion::Normalized | ( | ) |
return true if the quaternion is normalized
| albaQuaternion albaQuaternion::Inverse | ( | ) |
Calculate inverse of quaternion.
| void albaQuaternion::Inverse | ( | albaQuaternion & | result | ) |
Calculate inverse of quaternion and store result in parameter.
|
static |
Spherical linear interpolation.
| bool albaQuaternion::operator== | ( | albaQuaternion & | other | ) |
Equals operator.
| bool albaQuaternion::operator!= | ( | albaQuaternion & | other | ) |
Not equals operator.
| double & albaQuaternion::operator[] | ( | int | i | ) |
| albaQuaternion albaQuaternion::operator+ | ( | albaQuaternion | b | ) |
| albaQuaternion albaQuaternion::operator- | ( | albaQuaternion | b | ) |
| albaQuaternion albaQuaternion::operator* | ( | albaQuaternion | b | ) |
| albaQuaternion & albaQuaternion::operator+= | ( | albaQuaternion | b | ) |
| albaQuaternion & albaQuaternion::operator-= | ( | albaQuaternion | b | ) |
| albaQuaternion & albaQuaternion::operator*= | ( | const albaQuaternion | b | ) |
| bool albaQuaternion::operator== | ( | double | scalar | ) |
| bool albaQuaternion::operator!= | ( | double | scalar | ) |
| albaQuaternion albaQuaternion::operator- | ( | ) |
| albaQuaternion albaQuaternion::operator* | ( | double | s | ) |
| albaQuaternion albaQuaternion::operator/ | ( | double | s | ) |
| albaQuaternion & albaQuaternion::operator*= | ( | double | s | ) |
| albaQuaternion & albaQuaternion::operator/= | ( | double | s | ) |
|
protected |
w component of quaternion
Definition at line 136 of file albaQuaternion.h.
|
protected |
x component of quaternion
Definition at line 137 of file albaQuaternion.h.
|
protected |
y component of quaternion
Definition at line 138 of file albaQuaternion.h.
|
protected |
z component of quaternion
Definition at line 139 of file albaQuaternion.h.