90 if ( newPhi <= -
Pi()|| newPhi >
Pi() ) {
116 if ( theta2 < 0 || theta2 >
Pi() ) {
154 os <<
"\n{phi(Z angle): " << e.
Phi() <<
" theta(Y angle): " << e.
Theta()
155 <<
" psi(X angle): " << e.
Psi() <<
"}\n";
Scalar Psi() const
Return Psi angle (X'' rotation angle)
Rotation class representing a 3D rotation about the Z axis by the angle of rotation.
void Rectify()
Re-adjust components place angles in canonical ranges.
Rotation class with the (3D) rotation represented by angles describing first a rotation of an angle p...
Scalar Phi() const
Return Phi angle (Z rotation angle)
Rotation class with the (3D) rotation represented by a unit quaternion (u, i, j, k).
std::ostream & operator<<(std::ostream &os, const AxisAngle &a)
Stream Output and Input.
AxisAngle class describing rotation represented with direction axis (3D Vector) and an angle of rotat...
Scalar Angle() const
Angle of rotation.
Rotation class representing a 3D rotation about the Y axis by the angle of rotation.
RotationZYX()
Default constructor.
Rotation class representing a 3D rotation about the X axis by the angle of rotation.
Rotation class with the (3D) rotation represented by a 3x3 orthogonal matrix.
void Invert()
Invert a rotation in place.
EulerAngles class describing rotation as three angles (Euler Angles).
void Invert()
Invert a rotation in place.
Scalar Theta() const
Return Theta angle (Y' rotation angle)
AVector operator*(const AVector &v) const
Overload operator * for rotation on a vector.
AxisAngle operator*(RotationX const &r1, AxisAngle const &r2)
Multiplication of an axial rotation by an AxisAngle.