Rotation class representing a 3D rotation about the Z axis by the angle of rotation.
For efficiency reason, in addition to the angle, the sine and cosine of the angle are held
Definition at line 45 of file RotationZ.h.
Public Types | |
typedef double | Scalar |
Public Member Functions | |
RotationZ () | |
Default constructor (identity rotation) | |
RotationZ (Scalar angle) | |
Construct from an angle. | |
Scalar | Angle () const |
Angle of rotation. | |
Scalar | CosAngle () const |
void | GetAngle (Scalar &angle) const |
Get the angle. | |
void | GetComponents (Scalar &angle) const |
RotationZ | Inverse () const |
Return inverse of a rotation. | |
void | Invert () |
Invert a rotation in place. | |
bool | operator!= (const RotationZ &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. | |
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. | |
RotationZ | operator* (const RotationZ &r) const |
Multiply (combine) two rotations. | |
RotationZ & | operator*= (const RotationZ &r) |
Post-Multiply (on right) by another rotation : T = T*R. | |
bool | operator== (const RotationZ &rhs) const |
Equality/inequality operators. | |
void | Rectify () |
Rectify makes sure the angle is in (-pi,pi]. | |
void | SetAngle (Scalar angle) |
Set given the angle. | |
void | SetComponents (Scalar angle) |
Scalar | SinAngle () const |
Sine or Cosine of the rotation angle. | |
Private Attributes | |
Scalar | fAngle |
Scalar | fCos |
Scalar | fSin |
#include <Math/GenVector/RotationZ.h>
typedef double ROOT::Math::RotationZ::Scalar |
Definition at line 49 of file RotationZ.h.
|
inline |
Default constructor (identity rotation)
Definition at line 57 of file RotationZ.h.
|
inlineexplicit |
Construct from an angle.
Definition at line 62 of file RotationZ.h.
|
inline |
Angle of rotation.
Definition at line 105 of file RotationZ.h.
|
inline |
Definition at line 111 of file RotationZ.h.
|
inline |
Get the angle.
Definition at line 99 of file RotationZ.h.
|
inline |
Definition at line 100 of file RotationZ.h.
|
inline |
Return inverse of a rotation.
Definition at line 189 of file RotationZ.h.
|
inline |
Invert a rotation in place.
Definition at line 184 of file RotationZ.h.
Definition at line 217 of file RotationZ.h.
|
inline |
Rotation operation on a displacement vector in any coordinate system.
Definition at line 129 of file RotationZ.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 165 of file RotationZ.h.
|
inline |
Rotation operation on a Lorentz vector in any 4D coordinate system.
Definition at line 151 of file RotationZ.h.
|
inline |
Rotation operation on a position vector in any coordinate system.
Definition at line 140 of file RotationZ.h.
|
inline |
Overload operator * for rotation on a vector.
Definition at line 176 of file RotationZ.h.
Multiply (combine) two rotations.
Definition at line 196 of file RotationZ.h.
Post-Multiply (on right) by another rotation : T = T*R.
Definition at line 208 of file RotationZ.h.
Equality/inequality operators.
Definition at line 213 of file RotationZ.h.
|
inline |
Rectify makes sure the angle is in (-pi,pi].
Definition at line 74 of file RotationZ.h.
|
inline |
Set given the angle.
Definition at line 88 of file RotationZ.h.
|
inline |
Definition at line 94 of file RotationZ.h.
|
inline |
Sine or Cosine of the rotation angle.
Definition at line 110 of file RotationZ.h.
|
private |
Definition at line 223 of file RotationZ.h.
|
private |
Definition at line 225 of file RotationZ.h.
|
private |
Definition at line 224 of file RotationZ.h.