IMP logo

IMP::algebra::FixedZYZ Class Reference


Detailed Description

A simple class for returning ZYZ Euler angles.

Public Member Functions

 FixedZYZ (double rot, double tilt, double psi)
double get_psi () const
double get_rot () const
double get_tilt () const

Related Functions

(Note that these are not member functions.)

Euler Angles
There are many conventions for how to define Euler angles, based on choices of which of the x,y,z axis to use in what order and whether the rotation axis is in the body frame (and hence affected by previous rotations) or in in a fixed frame. See http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles for a general description.

  • All Euler angles are specified in radians.
  • The names are all rotation_from_{fixed/body}_abc() where abc is the ordering of x,y,z.


FixedZYZ get_fixed_zyz_from_rotation (const Rotation3D &r)
 The inverse of rotation_from_fixed_zyz().
Rotation3D get_rotation_from_fixed_zyz (double Rot, double Tilt, double Psi)
 Generate a rotation object from Euler Angles.

Friends And Related Function Documentation

FixedZYZ get_fixed_zyz_from_rotation ( const Rotation3D r  )  [related]

The inverse of rotation_from_fixed_zyz().

See also:
rotation_from_fixed_zyz()

Rotation3D get_rotation_from_fixed_zyz ( double  Rot,
double  Tilt,
double  Psi 
) [related]

Generate a rotation object from Euler Angles.

Note:
The first rotation is by an angle about the z-axis. The second rotation is by an angle about the new y-axis. The third rotation is by an angle about the new z-axis.
Parameters:
[in] Rot First Euler angle (radians) defining the rotation (Z axis)
[in] Tilt Second Euler angle (radians) defining the rotation (Y axis)
[in] Psi Third Euler angle (radians) defining the rotation (Z axis)


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

Generated on Mon Mar 8 23:08:47 2010 for IMP by doxygen 1.5.8