Rotation operators.
[Basic Types]

Operators on Rotation instances. More...

Collaboration diagram for Rotation operators.:

Typedefs

typedef Rotation H3DUtil::ArithmeticTypes::Rotationf
 Alias for float version of Rotation.

Functions

 H3DUtil::ArithmeticTypes::Rotation::Rotation (H3DFloat x, H3DFloat y, H3DFloat z, H3DFloat a)
 Constructor.
 H3DUtil::ArithmeticTypes::Rotation::Rotation (const Vec3f &_axis, H3DFloat _angle)
 Constructor.
 H3DUtil::ArithmeticTypes::Rotation::Rotation (const Vec3f &n1, const Vec3f &n2)
 Constructor.
 H3DUtil::ArithmeticTypes::Rotation::Rotation (const Vec3f &euler_angles)
 Constructor. From Euler angles (yaw, pitch, roll ).
 H3DUtil::ArithmeticTypes::Rotation::Rotation (const Vec3d &euler_angles)
 Constructor. From Euler angles (yaw, pitch, roll ).
 H3DUtil::ArithmeticTypes::Rotation::Rotation (const Quaternion &r)
 Constructor. From Quaternion object.
 H3DUtil::ArithmeticTypes::Rotation::Rotation (const Rotationd &r)
 Constructor. From Rotationd.
 H3DUtil::ArithmeticTypes::Rotation::Rotation (const Matrix3f &m)
 Constructor.
 H3DUtil::ArithmeticTypes::Rotation::Rotation (const Matrix3d &m)
 Constructor.
Vec3f H3DUtil::ArithmeticTypes::Rotation::toEulerAngles ()
 Get the euler angles( yaw, pitch, roll ) representation of the Rotation.
Rotation H3DUtil::ArithmeticTypes::Rotation::slerp (const Rotation &r, H3DFloat t) const
 Spherical linear interpolation between two Rotations.
bool H3DUtil::ArithmeticTypes::operator== (const Rotation &r1, const Rotation &r2)
 Test two Rotation instances for equality.
Rotation H3DUtil::ArithmeticTypes::operator- (const Rotation &r)
 Negation of a Rotation is the Rotation around the same axis but in the other direction.
Rotation H3DUtil::ArithmeticTypes::operator* (const Rotation &r, double d)
 Multiplacation by a double.
Rotation H3DUtil::ArithmeticTypes::operator* (const Rotation &r, float f)
 Multiplacation by a float.
Rotation H3DUtil::ArithmeticTypes::operator* (const Rotation &r, int i)
 Multiplacation by a int.
Rotation H3DUtil::ArithmeticTypes::operator* (const Rotation &r, long i)
 Multiplacation by a long.
Rotation H3DUtil::ArithmeticTypes::operator* (const float &a, const Rotation &b)
 Multiplication with float.
Rotation H3DUtil::ArithmeticTypes::operator* (const double &a, const Rotation &b)
 Multiplication with double.
Rotation H3DUtil::ArithmeticTypes::operator* (const int &a, const Rotation &b)
 Multiplication with int.
Rotation H3DUtil::ArithmeticTypes::operator* (const long &a, const Rotation &b)
 Multiplication with long.
ostream & H3DUtil::ArithmeticTypes::operator<< (ostream &os, const Rotation &r)
 Function for printing a Rotation to an ostream.
Rotation H3DUTIL_API H3DUtil::ArithmeticTypes::operator* (const Rotation &r1, const Rotation &r2)
 Multiplication of Rotation is the composition of the rotations.

Variables

Vec3f H3DUtil::ArithmeticTypes::Rotation::axis
 The axis the rotation is around.
H3DFloat H3DUtil::ArithmeticTypes::Rotation::angle
 The angle of the rotation.

Detailed Description

Operators on Rotation instances.

See also the template operators for more operators automatically defined from the explicit ones defined here.


Function Documentation

Rotation::Rotation ( const Matrix3d m  )  [explicit, inherited]

Constructor.

From Matrix3d that is a rotation matrix. Assumes the matrix is orthogonal.

References H3DUtil::ArithmeticTypes::Rotation::Rotation().

Rotation::Rotation ( const Matrix3f m  )  [explicit, inherited]

Constructor.

From Matrix3f that is a rotation matrix. Assumes the matrix is orthogonal.

References H3DUtil::ArithmeticTypes::Rotation::Rotation().

Rotation::Rotation ( const Vec3f n1,
const Vec3f n2 
) [inherited]

H3DUtil::ArithmeticTypes::Rotation::Rotation ( const Vec3f _axis,
H3DFloat  _angle 
) [inline, inherited]

Constructor.

Parameters:
_axis The axis of the rotation.
_angle The angle of the rotation.

H3DUtil::ArithmeticTypes::Rotation::Rotation ( H3DFloat  x,
H3DFloat  y,
H3DFloat  z,
H3DFloat  a 
) [inline, inherited]

Constructor.

x, y, z is the vector to rotate around and a is the angle.

Rotation Rotation::slerp ( const Rotation r,
H3DFloat  t 
) const [inherited]

Spherical linear interpolation between two Rotations.

Parameters:
r Ending Rotation
t Interpolation value between 0 and 1.

References H3DUtil::ArithmeticTypes::Quaternion::slerp().

Vec3f Rotation::toEulerAngles (  )  [inherited]

Get the euler angles( yaw, pitch, roll ) representation of the Rotation.


Generated on Fri Nov 7 10:23:41 2008 for H3DUtil by  doxygen 1.5.7