#include <OgreQuaternion.h>
Collaboration diagram for Ogre::Quaternion:
Public Methods | |
Quaternion (Real fW=1.0, Real fX=0.0, Real fY=0.0, Real fZ=0.0) | |
Quaternion (const Quaternion &rkQ) | |
void | FromRotationMatrix (const Matrix3 &kRot) |
void | ToRotationMatrix (Matrix3 &kRot) const |
void | FromAngleAxis (const Real &rfAngle, const Vector3 &rkAxis) |
void | ToAngleAxis (Real &rfAngle, 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) |
Get the local x-axis. | |
Vector3 | yAxis (void) |
Get the local y-axis. | |
Vector3 | zAxis (void) |
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 |
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 |
Static Public Methods | |
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) |
Public Attributes | |
Real | w |
Real | x |
Real | y |
Real | z |
Static Public Attributes | |
const Real | ms_fEpsilon = 1e-03 |
const Quaternion | ZERO |
const Quaternion | IDENTITY |
Friends | |
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 48 of file OgreQuaternion.h.
|
Definition at line 51 of file OgreQuaternion.h. References Ogre::Real. Referenced by Inverse(), operator *(), operator+(), operator-(), and UnitInverse(). |
|
Definition at line 60 of file OgreQuaternion.h. |
|
Definition at line 312 of file OgreQuaternion.cpp. References Ogre::Real, w, x, y, and z. Referenced by Slerp(), and SlerpExtraSpins(). |
|
Definition at line 343 of file OgreQuaternion.cpp. References ms_fEpsilon, Ogre::Real, w, x, y, and z. Referenced by Intermediate(), and Ogre::RotationalSpline::recalcTangents(). |
|
Definition at line 119 of file OgreQuaternion.cpp. References Ogre::Real, w, Ogre::Vector3::x, x, Ogre::Vector3::y, y, Ogre::Vector3::z, and z. Referenced by Ogre::Quake3Shader::createAsMaterial(), Ogre::BspLevel::loadEntities(), Ogre::Vector3::randomDeviant(), Ogre::Node::rotate(), Ogre::Camera::rotate(), and Ogre::Camera::setDirection(). |
|
Definition at line 173 of file OgreQuaternion.cpp. References FromRotationMatrix(), Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z. |
|
Definition at line 159 of file OgreQuaternion.cpp. References FromRotationMatrix(), Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z. Referenced by Ogre::Camera::setDirection(). |
|
Definition at line 53 of file OgreQuaternion.cpp. References Ogre::Real, w, x, y, and z. Referenced by FromAxes(). |
|
Definition at line 461 of file OgreQuaternion.cpp. References Exp(), Log(), and UnitInverse(). |
|
Definition at line 322 of file OgreQuaternion.cpp. References Quaternion(), Ogre::Real, w, x, y, z, and ZERO. Referenced by Ogre::ParticleSystem::_updateBounds(), Ogre::MeshManager::createCurvedIllusionPlane(), Ogre::BillboardSet::genBillboardAxes(), Ogre::Node::makeInverseTransform(), and Ogre::RotationalSpline::recalcTangents(). |
|
Definition at line 372 of file OgreQuaternion.cpp. References ms_fEpsilon, Ogre::Real, w, x, y, and z. Referenced by Intermediate(), and Ogre::RotationalSpline::recalcTangents(). |
|
Definition at line 317 of file OgreQuaternion.cpp. References Ogre::Real, w, x, y, and z. Referenced by normalise(). |
|
Normalises this quaternion, and returns the previous length.
Definition at line 494 of file OgreQuaternion.cpp. References Norm(), and Ogre::Real. Referenced by Slerp(). |
|
Definition at line 402 of file OgreQuaternion.cpp. References Ogre::Vector3::crossProduct(), w, x, y, and z. |
|
Definition at line 296 of file OgreQuaternion.cpp. References Quaternion(), Ogre::Real, w, x, y, and z. |
|
Definition at line 282 of file OgreQuaternion.cpp. |
|
Definition at line 272 of file OgreQuaternion.cpp. References Quaternion(), w, x, y, and z. |
|
Definition at line 307 of file OgreQuaternion.cpp. References Quaternion(), w, x, y, and z. |
|
Definition at line 277 of file OgreQuaternion.cpp. References Quaternion(), w, x, y, and z. |
|
Definition at line 83 of file OgreQuaternion.h. |
|
Definition at line 488 of file OgreQuaternion.cpp. |
|
Definition at line 416 of file OgreQuaternion.cpp. References Dot(), ms_fEpsilon, normalise(), and Ogre::Real. Referenced by Squad(). |
|
Definition at line 444 of file OgreQuaternion.cpp. References Dot(), ms_fEpsilon, and Ogre::Real. |
|
Definition at line 478 of file OgreQuaternion.cpp. References Ogre::Real, and Slerp(). |
|
Definition at line 135 of file OgreQuaternion.cpp. References Ogre::Real, w, Ogre::Vector3::x, x, Ogre::Vector3::y, y, Ogre::Vector3::z, and z. Referenced by Ogre::Skeleton::_dumpContents(). |
|
Definition at line 252 of file OgreQuaternion.cpp. References ToRotationMatrix(), Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z. |
|
Definition at line 193 of file OgreQuaternion.cpp. References ToRotationMatrix(), Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z. Referenced by Ogre::Camera::setDirection(). |
|
Definition at line 93 of file OgreQuaternion.cpp. References Ogre::Real, w, x, y, and z. Referenced by Ogre::Node::makeInverseTransform(), Ogre::Node::makeTransform(), ToAxes(), Ogre::Frustum::updateView(), and Ogre::Camera::updateView(). |
|
Definition at line 337 of file OgreQuaternion.cpp. References Quaternion(), w, x, y, and z. Referenced by Intermediate(). |
|
Get the local x-axis.
Definition at line 207 of file OgreQuaternion.cpp. References Ogre::Real, w, x, y, and z. |
|
Get the local y-axis.
Definition at line 222 of file OgreQuaternion.cpp. References Ogre::Real, w, x, y, and z. |
|
Get the local z-axis.
Definition at line 237 of file OgreQuaternion.cpp. References Ogre::Real, w, x, y, and z. |
|
Definition at line 301 of file OgreQuaternion.cpp. |
|
Function for writing to a stream.
Definition at line 143 of file OgreQuaternion.h. |
|
|
|
Definition at line 48 of file OgreQuaternion.cpp. Referenced by Exp(), Log(), Slerp(), and SlerpExtraSpins(). |
|
Definition at line 138 of file OgreQuaternion.h. Referenced by Dot(), Exp(), FromAngleAxis(), FromRotationMatrix(), Ogre::Vector3::getRotationTo(), Inverse(), Log(), Norm(), Ogre::operator *(), operator *(), operator+(), operator-(), operator=(), operator==(), Quaternion(), Ogre::Serializer::readObject(), Ogre::Node::setOrientation(), ToAngleAxis(), ToRotationMatrix(), Ogre::StringConverter::toString(), UnitInverse(), Ogre::Serializer::writeObject(), xAxis(), yAxis(), and zAxis(). |
|
Definition at line 138 of file OgreQuaternion.h. Referenced by Dot(), Exp(), FromAngleAxis(), FromRotationMatrix(), Ogre::Vector3::getRotationTo(), Inverse(), Log(), Norm(), Ogre::operator *(), operator *(), operator+(), operator-(), operator=(), operator==(), Quaternion(), Ogre::Serializer::readObject(), Ogre::Node::setOrientation(), ToAngleAxis(), ToRotationMatrix(), Ogre::StringConverter::toString(), UnitInverse(), Ogre::Serializer::writeObject(), xAxis(), yAxis(), and zAxis(). |
|
Definition at line 138 of file OgreQuaternion.h. Referenced by Dot(), Exp(), FromAngleAxis(), FromRotationMatrix(), Ogre::Vector3::getRotationTo(), Inverse(), Log(), Norm(), Ogre::operator *(), operator *(), operator+(), operator-(), operator=(), operator==(), Quaternion(), Ogre::Serializer::readObject(), Ogre::Node::setOrientation(), ToAngleAxis(), ToRotationMatrix(), Ogre::StringConverter::toString(), UnitInverse(), Ogre::Serializer::writeObject(), xAxis(), yAxis(), and zAxis(). |
|
Definition at line 138 of file OgreQuaternion.h. Referenced by Dot(), Exp(), FromAngleAxis(), FromRotationMatrix(), Ogre::Vector3::getRotationTo(), Inverse(), Log(), Norm(), Ogre::operator *(), operator *(), operator+(), operator-(), operator=(), operator==(), Quaternion(), Ogre::Serializer::readObject(), Ogre::Node::setOrientation(), ToAngleAxis(), ToRotationMatrix(), Ogre::StringConverter::toString(), UnitInverse(), Ogre::Serializer::writeObject(), xAxis(), yAxis(), and zAxis(). |
|
Referenced by Inverse(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:19:19 2004