Rotation operators.
[Basic types.]

Collaboration diagram for Rotation operators.:

Operators on Rotation instances. More...

Functions

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

Variables

Vec3f H3D::ArithmeticTypes::Rotation::axis
 The axis the rotation is around.
H3DFloat H3D::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

H3D::ArithmeticTypes::Rotation::Rotation const Matrix3d m  )  [explicit, inherited]
 

Constructor.

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

H3D::ArithmeticTypes::Rotation::Rotation const Matrix3f m  )  [explicit, inherited]
 

Constructor.

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

H3D::ArithmeticTypes::Rotation::Rotation const Vec3f n1,
const Vec3f n2
[inherited]
 

Constructor.

Constructs the shortest rotation the goes from n1 to n2. Both n1 and n2 must be unit vectors.

H3D::ArithmeticTypes::Rotation::Rotation const Vec3f _axis,
H3DFloat  _angle
[inline, inherited]
 

Constructor.

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

H3D::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 H3D::ArithmeticTypes::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.


Generated on Thu Aug 24 12:38:45 2006 for H3D API by  doxygen 1.4.5