EulerAngles class describing rotation as three angles (Euler Angles).
The Euler angles definition matches that of Classical Mechanics (Goldstein). It is also the same convention defined in mathworld and used in Mathematica and CLHEP. Note that the ROOT class TRotation defines a slightly different convention.
Definition at line 50 of file EulerAngles.h.
Public Types | |
typedef double | Scalar |
Public Member Functions | |
EulerAngles () | |
Default constructor. | |
template<class OtherRotation > | |
EulerAngles (const OtherRotation &r) | |
Create from any other supported rotation (see gv_detail::convert ) | |
template<class IT > | |
EulerAngles (IT begin, IT end) | |
Construct given a pair of pointers or iterators defining the beginning and end of an array of three Scalars, to be treated as the angles phi, theta and psi. | |
EulerAngles (Scalar phi, Scalar theta, Scalar psi) | |
Constructor from phi, theta and psi. | |
template<class R > | |
Scalar | Distance (const R &r) const |
Distance between two rotations. | |
template<class IT > | |
void | GetComponents (IT begin) const |
Get the axis and then the angle into data specified by an iterator begin. | |
template<class IT > | |
void | GetComponents (IT begin, IT end) const |
Get the axis and then the angle into data specified by an iterator begin and another to the end of the desired data (4 past start). | |
void | GetComponents (Scalar &phi, Scalar &theta, Scalar &psi) const |
Get the components phi, theta, psi into three Scalars. | |
EulerAngles | Inverse () const |
Return inverse of a rotation. | |
void | Invert () |
Invert a rotation in place. | |
bool | operator!= (const EulerAngles &rhs) const |
template<class CoordSystem , class U > | |
DisplacementVector3D< CoordSystem, U > | operator() (const DisplacementVector3D< CoordSystem, U > &v) const |
Rotation operation on a displacement vector in any coordinate system and tag. | |
template<class ForeignVector > | |
ForeignVector | operator() (const ForeignVector &v) const |
Rotation operation on an arbitrary vector v. | |
template<class CoordSystem > | |
LorentzVector< CoordSystem > | operator() (const LorentzVector< CoordSystem > &v) const |
Rotation operation on a Lorentz vector in any 4D coordinate system. | |
template<class CoordSystem , class U > | |
PositionVector3D< CoordSystem, U > | operator() (const PositionVector3D< CoordSystem, U > &v) const |
Rotation operation on a position vector in any coordinate system. | |
template<class AVector > | |
AVector | operator* (const AVector &v) const |
Overload operator * for rotation on a vector. | |
EulerAngles | operator* (const AxisAngle &a) const |
EulerAngles | operator* (const EulerAngles &e) const |
EulerAngles | operator* (const Quaternion &q) const |
EulerAngles | operator* (const Rotation3D &r) const |
Multiply (combine) two rotations. | |
EulerAngles | operator* (const RotationX &rx) const |
EulerAngles | operator* (const RotationY &ry) const |
EulerAngles | operator* (const RotationZ &rz) const |
template<class R > | |
EulerAngles & | operator*= (const R &r) |
Post-Multiply (on right) by another rotation : T = T*R. | |
template<class OtherRotation > | |
EulerAngles & | operator= (OtherRotation const &r) |
Assign from any other rotation (see gv_detail::convert ) | |
bool | operator== (const EulerAngles &rhs) const |
Equality/inequality operators. | |
Scalar | Phi () const |
Return Phi Euler angle. | |
Scalar | Psi () const |
Return Psi Euler angle. | |
void | Rectify () |
Re-adjust components place angles in canonical ranges. | |
template<class IT > | |
void | SetComponents (IT begin, IT end) |
Set the three Euler angles given a pair of pointers or iterators defining the beginning and end of an array of three Scalars. | |
void | SetComponents (Scalar phi, Scalar theta, Scalar psi) |
Set the components phi, theta, psi based on three Scalars. | |
void | SetPhi (Scalar phi) |
Set Phi Euler angle // JMM 30 Jan. | |
void | SetPsi (Scalar psi) |
Set Psi Euler angle // JMM 30 Jan. | |
void | SetTheta (Scalar theta) |
Set Theta Euler angle // JMM 30 Jan. | |
Scalar | Theta () const |
Return Theta Euler angle. | |
Static Private Member Functions | |
static double | Pi () |
Private Attributes | |
double | fPhi |
double | fPsi |
double | fTheta |
#include <MathX/GenVectorX/EulerAngles.h>
Definition at line 53 of file EulerAngles.h.
|
inline |
Default constructor.
Definition at line 58 of file EulerAngles.h.
Constructor from phi, theta and psi.
Definition at line 63 of file EulerAngles.h.
Construct given a pair of pointers or iterators defining the beginning and end of an array of three Scalars, to be treated as the angles phi, theta and psi.
Definition at line 74 of file EulerAngles.h.
|
inlineexplicit |
Create from any other supported rotation (see gv_detail::convert )
Definition at line 92 of file EulerAngles.h.
Distance between two rotations.
Definition at line 355 of file EulerAngles.h.
Get the axis and then the angle into data specified by an iterator begin.
Definition at line 186 of file EulerAngles.h.
Get the axis and then the angle into data specified by an iterator begin and another to the end of the desired data (4 past start).
Definition at line 173 of file EulerAngles.h.
|
inline |
Get the components phi, theta, psi into three Scalars.
Definition at line 207 of file EulerAngles.h.
|
inline |
Return inverse of a rotation.
Definition at line 327 of file EulerAngles.h.
|
inline |
Invert a rotation in place.
Definition at line 317 of file EulerAngles.h.
|
inline |
Definition at line 373 of file EulerAngles.h.
|
inline |
Rotation operation on a displacement vector in any coordinate system and tag.
Definition at line 262 of file EulerAngles.h.
|
inline |
Rotation operation on an arbitrary vector v.
Preconditions: v must implement methods x(), y(), and z() and the arbitrary vector type must have a constructor taking (x,y,z)
Definition at line 296 of file EulerAngles.h.
|
inline |
Rotation operation on a Lorentz vector in any 4D coordinate system.
Definition at line 282 of file EulerAngles.h.
|
inline |
Rotation operation on a position vector in any coordinate system.
Definition at line 271 of file EulerAngles.h.
Overload operator * for rotation on a vector.
Definition at line 307 of file EulerAngles.h.
EulerAngles ROOT::ROOT_MATH_ARCH::EulerAngles::operator* | ( | const AxisAngle & | a | ) | const |
Definition at line 80 of file EulerAngles.cxx.
EulerAngles ROOT::ROOT_MATH_ARCH::EulerAngles::operator* | ( | const EulerAngles & | e | ) | const |
Definition at line 86 of file EulerAngles.cxx.
EulerAngles ROOT::ROOT_MATH_ARCH::EulerAngles::operator* | ( | const Quaternion & | q | ) | const |
Definition at line 91 of file EulerAngles.cxx.
EulerAngles ROOT::ROOT_MATH_ARCH::EulerAngles::operator* | ( | const Rotation3D & | r | ) | const |
Multiply (combine) two rotations.
Definition at line 74 of file EulerAngles.cxx.
EulerAngles ROOT::ROOT_MATH_ARCH::EulerAngles::operator* | ( | const RotationX & | rx | ) | const |
Definition at line 97 of file EulerAngles.cxx.
EulerAngles ROOT::ROOT_MATH_ARCH::EulerAngles::operator* | ( | const RotationY & | ry | ) | const |
Definition at line 103 of file EulerAngles.cxx.
EulerAngles ROOT::ROOT_MATH_ARCH::EulerAngles::operator* | ( | const RotationZ & | rz | ) | const |
Definition at line 109 of file EulerAngles.cxx.
|
inline |
Post-Multiply (on right) by another rotation : T = T*R.
Definition at line 346 of file EulerAngles.h.
|
inline |
Assign from any other rotation (see gv_detail::convert )
Definition at line 101 of file EulerAngles.h.
|
inline |
Equality/inequality operators.
Definition at line 363 of file EulerAngles.h.
|
inline |
Return Phi Euler angle.
Definition at line 226 of file EulerAngles.h.
Definition at line 380 of file EulerAngles.h.
|
inline |
Return Psi Euler angle.
Definition at line 254 of file EulerAngles.h.
void ROOT::ROOT_MATH_ARCH::EulerAngles::Rectify | ( | ) |
Re-adjust components place angles in canonical ranges.
Definition at line 41 of file EulerAngles.cxx.
Set the three Euler angles given a pair of pointers or iterators defining the beginning and end of an array of three Scalars.
Definition at line 158 of file EulerAngles.h.
|
inline |
Set the components phi, theta, psi based on three Scalars.
Definition at line 196 of file EulerAngles.h.
|
inline |
|
inline |
|
inline |
|
inline |
Return Theta Euler angle.
Definition at line 240 of file EulerAngles.h.
|
private |
Definition at line 376 of file EulerAngles.h.
|
private |
Definition at line 378 of file EulerAngles.h.
|
private |
Definition at line 377 of file EulerAngles.h.