Logo Search packages:      
Sourcecode: blender version File versions  Download package

btQuaternion Class Reference

#include <btQuaternion.h>

List of all members.


Detailed Description

The btQuaternion implements quaternion to perform linear algebra rotations in combination with btMatrix3x3, btVector3 and btTransform.

Definition at line 25 of file btQuaternion.h.


Public Member Functions

btScalar angle (const btQuaternion &q) const
 Return the angle between this quaternion and the other.
 btQuaternion (const btScalar &yaw, const btScalar &pitch, const btScalar &roll)
 Constructor from Euler angles.
 btQuaternion (const btVector3 &axis, const btScalar &angle)
 Axis angle Constructor.
 btQuaternion (const btScalar &x, const btScalar &y, const btScalar &z, const btScalar &w)
 Constructor from scalars.
 btQuaternion ()
 No initialization constructor.
btScalar dot (const btQuaternion &q) const
 Return the dot product between this quaternion and another.
SIMD_FORCE_INLINE btQuaternion farthest (const btQuaternion &qd) const
btScalar getAngle () const
 Return the angle of rotation represented by this quaternion.
SIMD_FORCE_INLINE const btScalar & getW () const
btQuaternion inverse () const
 Return the inverse of this quaternion.
btScalar length () const
 Return the length of the quaternion.
btScalar length2 () const
 Return the length squared of the quaternion.
btQuaternionnormalize ()
 Normalize the quaternion Such that x^2 + y^2 + z^2 +w^2 = 1.
btQuaternion normalized () const
 Return a normalized version of this quaternion.
SIMD_FORCE_INLINE btQuaternion operator* (const btScalar &s) const
 Return a scaled version of this quaternion.
btQuaternionoperator*= (const btQuaternion &q)
 Multiply this quaternion by q on the right.
btQuaternionoperator*= (const btScalar &s)
 Scale this quaternion.
SIMD_FORCE_INLINE btQuaternion operator+ (const btQuaternion &q2) const
 Return the sum of this quaternion and the other.
SIMD_FORCE_INLINE btQuaternionoperator+= (const btQuaternion &q)
 Add two quaternions.
SIMD_FORCE_INLINE btQuaternion operator- () const
 Return the negative of this quaternion This simply negates each element.
SIMD_FORCE_INLINE btQuaternion operator- (const btQuaternion &q2) const
 Return the difference between this quaternion and the other.
btQuaternionoperator-= (const btQuaternion &q)
 Subtract out a quaternion.
btQuaternion operator/ (const btScalar &s) const
 Return an inversely scaled versionof this quaternion.
btQuaternionoperator/= (const btScalar &s)
 Inversely scale this quaternion.
void setEuler (const btScalar &yaw, const btScalar &pitch, const btScalar &roll)
 Set the quaternion using Euler angles.
void setEulerZYX (const btScalar &yaw, const btScalar &pitch, const btScalar &roll)
 Set the quaternion using euler angles.
void setRotation (const btVector3 &axis, const btScalar &angle)
 Set the rotation using axis angle notation.
btQuaternion slerp (const btQuaternion &q, const btScalar &t) const
 Return the quaternion which is the result of Spherical Linear Interpolation between this and the other quaternion.

Static Public Member Functions

static const btQuaterniongetIdentity ()

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index