Rotation class representing a 3D rotation about the Y 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 46 of file RotationY.h.
Public Types | |
typedef double | Scalar |
Public Member Functions | |
RotationY () | |
Default constructor (identity rotation) | |
RotationY (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 |
RotationY | Inverse () const |
Return inverse of a rotation. | |
void | Invert () |
Invert a rotation in place. | |
bool | operator!= (const RotationY &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. | |
RotationY | operator* (const RotationY &r) const |
Multiply (combine) two rotations. | |
RotationY & | operator*= (const RotationY &r) |
Post-Multiply (on right) by another rotation : T = T*R. | |
bool | operator== (const RotationY &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/RotationY.h>
Definition at line 50 of file RotationY.h.
|
inline |
Default constructor (identity rotation)
Definition at line 58 of file RotationY.h.
|
inlineexplicit |
Construct from an angle.
Definition at line 63 of file RotationY.h.
|
inline |
Angle of rotation.
Definition at line 106 of file RotationY.h.
|
inline |
Definition at line 112 of file RotationY.h.
|
inline |
Get the angle.
Definition at line 100 of file RotationY.h.
|
inline |
Definition at line 101 of file RotationY.h.
|
inline |
Return inverse of a rotation.
Definition at line 190 of file RotationY.h.
|
inline |
Invert a rotation in place.
Definition at line 185 of file RotationY.h.
Definition at line 218 of file RotationY.h.
|
inline |
Rotation operation on a displacement vector in any coordinate system.
Definition at line 130 of file RotationY.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 166 of file RotationY.h.
|
inline |
Rotation operation on a Lorentz vector in any 4D coordinate system.
Definition at line 152 of file RotationY.h.
|
inline |
Rotation operation on a position vector in any coordinate system.
Definition at line 141 of file RotationY.h.
Overload operator * for rotation on a vector.
Definition at line 177 of file RotationY.h.
Multiply (combine) two rotations.
Definition at line 197 of file RotationY.h.
Post-Multiply (on right) by another rotation : T = T*R.
Definition at line 209 of file RotationY.h.
Equality/inequality operators.
Definition at line 214 of file RotationY.h.
|
inline |
Rectify makes sure the angle is in (-pi,pi].
Definition at line 75 of file RotationY.h.
|
inline |
Set given the angle.
Definition at line 89 of file RotationY.h.
|
inline |
Definition at line 95 of file RotationY.h.
|
inline |
Sine or Cosine of the rotation angle.
Definition at line 111 of file RotationY.h.
|
private |
Definition at line 224 of file RotationY.h.
|
private |
Definition at line 226 of file RotationY.h.
|
private |
Definition at line 225 of file RotationY.h.