#include <OgreQuaternion.h>
Public Member Functions | |
Quaternion (Real fW=1.0, Real fX=0.0, Real fY=0.0, Real fZ=0.0) | |
Quaternion (const Quaternion &rkQ) | |
Quaternion (const Matrix3 &rot) | |
Construct a quaternion from a rotation matrix. | |
Quaternion (const Radian &rfAngle, const Vector3 &rkAxis) | |
Construct a quaternion from an angle/axis. | |
Quaternion (const Vector3 &xaxis, const Vector3 &yaxis, const Vector3 &zaxis) | |
Construct a quaternion from 3 orthonormal local axes. | |
Quaternion (const Vector3 *akAxis) | |
Construct a quaternion from 3 orthonormal local axes. | |
Quaternion (Real *valptr) | |
Construct a quaternion from 4 manual w/x/y/z values. | |
void | FromRotationMatrix (const Matrix3 &kRot) |
void | ToRotationMatrix (Matrix3 &kRot) const |
void | FromAngleAxis (const Radian &rfAngle, const Vector3 &rkAxis) |
void | ToAngleAxis (Radian &rfAngle, Vector3 &rkAxis) const |
void | ToAngleAxis (Degree &dAngle, Vector3 &rkAxis) const |
void | FromAxes (const Vector3 *akAxis) |
void | FromAxes (const Vector3 &xAxis, const Vector3 &yAxis, const Vector3 &zAxis) |
void | ToAxes (Vector3 *akAxis) const |
void | ToAxes (Vector3 &xAxis, Vector3 &yAxis, Vector3 &zAxis) const |
Vector3 | xAxis (void) const |
Get the local x-axis. | |
Vector3 | yAxis (void) const |
Get the local y-axis. | |
Vector3 | zAxis (void) const |
Get the local z-axis. | |
Quaternion & | operator= (const Quaternion &rkQ) |
Quaternion | operator+ (const Quaternion &rkQ) const |
Quaternion | operator- (const Quaternion &rkQ) const |
Quaternion | operator * (const Quaternion &rkQ) const |
Quaternion | operator * (Real fScalar) const |
Quaternion | operator- () const |
bool | operator== (const Quaternion &rhs) const |
bool | operator!= (const Quaternion &rhs) const |
Real | Dot (const Quaternion &rkQ) const |
Real | Norm () const |
Real | normalise (void) |
Normalises this quaternion, and returns the previous length. | |
Quaternion | Inverse () const |
Quaternion | UnitInverse () const |
Quaternion | Exp () const |
Quaternion | Log () const |
Vector3 | operator * (const Vector3 &rkVector) const |
Radian | getRoll (void) const |
Calculate the local roll element of this quaternion. | |
Radian | getPitch (void) const |
Calculate the local pitch element of this quaternion. | |
Radian | getYaw (void) const |
Calculate the local yaw element of this quaternion. | |
bool | equals (const Quaternion &rhs, const Radian &tolerance) const |
Equality with tolerance (tolerance is max angle difference). | |
Static Public Member Functions | |
Quaternion | Slerp (Real fT, const Quaternion &rkP, const Quaternion &rkQ, bool shortestPath=false) |
Quaternion | SlerpExtraSpins (Real fT, const Quaternion &rkP, const Quaternion &rkQ, int iExtraSpins) |
void | Intermediate (const Quaternion &rkQ0, const Quaternion &rkQ1, const Quaternion &rkQ2, Quaternion &rka, Quaternion &rkB) |
Quaternion | Squad (Real fT, const Quaternion &rkP, const Quaternion &rkA, const Quaternion &rkB, const Quaternion &rkQ, bool shortestPath=false) |
Quaternion | nlerp (Real fT, const Quaternion &rkP, const Quaternion &rkQ, bool shortestPath=false) |
Static Public Attributes | |
const Real | ms_fEpsilon |
const Quaternion | ZERO |
const Quaternion | IDENTITY |
Friends | |
_OgreExport friend Quaternion | operator * (Real fScalar, const Quaternion &rkQ) |
_OgreExport friend std::ostream & | operator<< (std::ostream &o, const Quaternion &q) |
Function for writing to a stream. |
a rotation around an axis.
Definition at line 49 of file OgreQuaternion.h.
|
Definition at line 52 of file OgreQuaternion.h. References Ogre::Real. |
|
Definition at line 61 of file OgreQuaternion.h. |
|
Construct a quaternion from a rotation matrix.
Definition at line 69 of file OgreQuaternion.h. |
|
Construct a quaternion from an angle/axis.
Definition at line 74 of file OgreQuaternion.h. |
|
Construct a quaternion from 3 orthonormal local axes.
Definition at line 85 of file OgreQuaternion.h. |
|
Construct a quaternion from 3 orthonormal local axes.
Definition at line 90 of file OgreQuaternion.h. |
|
Construct a quaternion from 4 manual w/x/y/z values.
Definition at line 95 of file OgreQuaternion.h. References Ogre::Real. |
|
|
|
Equality with tolerance (tolerance is max angle difference).
|
|
|
|
Referenced by Ogre::Vector3::getRotationTo(), and Ogre::Vector3::randomDeviant(). |
|
|
|
|
|
|
|
Calculate the local pitch element of this quaternion.
|
|
Calculate the local roll element of this quaternion.
|
|
Calculate the local yaw element of this quaternion.
|
|
|
|
|
|
|
|
|
|
|
|
Normalises this quaternion, and returns the previous length.
|
|
|
|
|
|
|
|
Definition at line 150 of file OgreQuaternion.h. References Ogre::operator==(). |
|
|
|
|
|
|
|
Definition at line 130 of file OgreQuaternion.h. |
|
Definition at line 145 of file OgreQuaternion.h. |
|
|
|
|
|
|
|
Definition at line 104 of file OgreQuaternion.h. |
|
|
|
|
|
|
|
Referenced by Ogre::Matrix4::Matrix4(). |
|
|
|
Get the local x-axis.
|
|
Get the local y-axis.
|
|
Get the local z-axis.
|
|
|
|
Function for writing to a stream. Outputs "Quaternion(w, x, y, z)" with w,x,y,z being the member values of the quaternion. Definition at line 217 of file OgreQuaternion.h. |
|
Definition at line 203 of file OgreQuaternion.h. |
|
Definition at line 199 of file OgreQuaternion.h. |
|
Definition at line 210 of file OgreQuaternion.h. Referenced by Ogre::AnimableValue::setAsBaseValue(). |
|
Definition at line 208 of file OgreQuaternion.h. Referenced by Ogre::Vector3::getRotationTo(), operator=(), operator==(), and Quaternion(). |
|
Definition at line 208 of file OgreQuaternion.h. Referenced by Ogre::Vector3::getRotationTo(), operator=(), operator==(), and Quaternion(). |
|
Definition at line 208 of file OgreQuaternion.h. Referenced by Ogre::Vector3::getRotationTo(), operator=(), operator==(), and Quaternion(). |
|
Definition at line 208 of file OgreQuaternion.h. Referenced by Ogre::Vector3::getRotationTo(), operator=(), operator==(), and Quaternion(). |
|
Definition at line 202 of file OgreQuaternion.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:41:54 2006