SO3Engine
|
SO3Euler.h
Go to the documentation of this file.
191 mCachedQuaternion = Ogre::Quaternion(mYaw, Ogre::Vector3::UNIT_Y) * Ogre::Quaternion(mPitch, Ogre::Vector3::UNIT_X) * Ogre::Quaternion(mRoll, Ogre::Vector3::UNIT_Z);
338 inline Euler getRotationTo(const Ogre::Vector3 &dir, bool setYaw = true, bool setPitch = true, bool shortest = true)
friend Euler operator*(Ogre::Real lhs, const Euler &rhs)
Interpolate the euler angle by lhs.
Definition SO3Euler.h:428
Euler & rotate(const Ogre::Radian &y, const Ogre::Radian &p, const Ogre::Radian &r)
Apply all relative rotations at once.
Definition SO3Euler.h:165
Euler & limitYaw(const Ogre::Radian &limit)
Clamp the yaw angle to a range of +/-limit.
Definition SO3Euler.h:352
Euler getRotationTo(const Ogre::Vector3 &dir, bool setYaw=true, bool setPitch=true, bool shortest=true)
Return the relative euler angles required to rotate from the current forward direction to the specifi...
Definition SO3Euler.h:338
Euler & fromMatrix3(const Ogre::Matrix3 &matrix)
Calculate the current euler angles of a given matrix object.
Definition SO3Euler.h:219
Ogre::Vector3 operator*(const Ogre::Vector3 &rhs)
Apply the euler rotation to the vector rhs.
Definition SO3Euler.h:445
Euler(Ogre::Real y, Ogre::Real p=0.0f, Ogre::Real r=0.0f)
Constructor which takes yaw, pitch and roll values as reals (radians).
Definition SO3Euler.h:50
Euler & fromQuaternion(const Ogre::Quaternion &quaternion)
Calculate the current euler angles of a given quaternion object.
Definition SO3Euler.h:207
Ogre::Quaternion toQuaternion()
Calculate the quaternion of the euler object.
Definition SO3Euler.h:187
Euler & operator=(const Ogre::Matrix3 &matrix)
Copy assignment operator (Matrix3)
Definition SO3Euler.h:465
Ogre::Quaternion mCachedQuaternion
Cached quaternion equivalent of this euler object.
Definition SO3Euler.h:475
Euler & normalise(bool normYaw=true, bool normPitch=true, bool normRoll=true)
Normalise the selected rotations to be within the +/-180 degree range.
Definition SO3Euler.h:250
Euler & setRotation(const Ogre::Radian &y, const Ogre::Radian &p, const Ogre::Radian &r)
Set all rotations at once.
Definition SO3Euler.h:117
Euler & limitRoll(const Ogre::Radian &limit)
Clamp the roll angle to a range of +/-limit.
Definition SO3Euler.h:384
Euler & setDirection(const Ogre::Vector3 &v, bool setYaw=true, bool setPitch=true)
Set the yaw and pitch to face in the given direction.
Definition SO3Euler.h:232
Euler & limitPitch(const Ogre::Radian &limit)
Clamp the pitch angle to a range of +/-limit.
Definition SO3Euler.h:368
friend std::ostream & operator<<(std::ostream &o, const Euler &e)
Stream operator, for printing the euler component angles to a stream.
Definition SO3Euler.h:400
Euler & operator=(const Ogre::Quaternion &quaternion)
Copy assignment operator (Quaternion)
Definition SO3Euler.h:458
Euler(const Ogre::Radian &y, const Ogre::Radian &p=Ogre::Radian(0.0f), const Ogre::Radian &r=Ogre::Radian(0.0f))
Constructor which takes yaw, pitch and roll values.
Definition SO3Euler.h:39
Definition OgreNewt_Debugger.h:21
Generated by 1.9.8