#include <RotationZ.h>
Public Types | |
| typedef double | Scalar |
Public Member Functions | |
| RotationZ () | |
| Default constructor (identity rotation). | |
| RotationZ (Scalar angle) | |
| Construct from an angle. | |
| void | Rectify () |
| Rectify makes sure the angle is in (-pi,pi]. | |
| void | SetAngle (Scalar angle) |
| Set given the angle. | |
| void | SetComponents (Scalar angle) |
| void | GetAngle (Scalar &angle) const |
| Get the angle. | |
| void | GetComponents (Scalar &angle) const |
| Scalar | Angle () const |
| Angle of rotation. | |
| Scalar | SinAngle () const |
| Sine or Cosine of the rotation angle. | |
| Scalar | CosAngle () const |
| template<class CoordSystem , class U > | |
| DisplacementVector3D < CoordSystem, U > | operator() (const DisplacementVector3D< CoordSystem, U > &v) const |
| Rotation operation on a cartesian vector. | |
| 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 CoordSystem > | |
| LorentzVector< CoordSystem > | operator() (const LorentzVector< CoordSystem > &v) const |
| Rotation operation on a Lorentz vector in any 4D coordinate system. | |
| template<class ForeignVector > | |
| ForeignVector | operator() (const ForeignVector &v) const |
| Rotation operation on an arbitrary vector v. | |
| template<class AVector > | |
| AVector | operator* (const AVector &v) const |
| Overload operator * for rotation on a vector. | |
| void | Invert () |
| Invert a rotation in place. | |
| RotationZ | Inverse () const |
| Return inverse of a rotation. | |
| 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. | |
| bool | operator!= (const RotationZ &rhs) const |
For efficiency reason, in addition to the the angle, the sine and cosine of the angle are held
Definition at line 43 of file GenVector/RotationZ.h.
| typedef double ROOT::Math::RotationZ::Scalar |
Definition at line 47 of file GenVector/RotationZ.h.
| ROOT::Math::RotationZ::RotationZ | ( | ) | [inline] |
| ROOT::Math::RotationZ::RotationZ | ( | Scalar | angle | ) | [inline, explicit] |
| Scalar ROOT::Math::RotationZ::Angle | ( | ) | const [inline] |
Angle of rotation.
Definition at line 103 of file GenVector/RotationZ.h.
References atan2().
Referenced by ROOT::Math::gv_detail::convert(), ROOT::Math::RotationZYX::operator*(), ROOT::Math::EulerAngles::operator*(), and ROOT::Math::operator<<().
| Scalar ROOT::Math::RotationZ::CosAngle | ( | ) | const [inline] |
Definition at line 109 of file GenVector/RotationZ.h.
Referenced by ROOT::Math::gv_detail::convert(), ROOT::Math::LorentzRotation::LorentzRotation(), ROOT::Math::operator*(), ROOT::Math::Rotation3D::operator*(), and ROOT::Math::AxisAngle::operator*().
| void ROOT::Math::RotationZ::GetAngle | ( | Scalar & | angle | ) | const [inline] |
Get the angle.
Definition at line 97 of file GenVector/RotationZ.h.
References atan2().
Referenced by GetComponents().
| void ROOT::Math::RotationZ::GetComponents | ( | Scalar & | angle | ) | const [inline] |
| RotationZ ROOT::Math::RotationZ::Inverse | ( | ) | const [inline] |
Return inverse of a rotation.
Definition at line 187 of file GenVector/RotationZ.h.
References Invert().
| void ROOT::Math::RotationZ::Invert | ( | ) | [inline] |
Invert a rotation in place.
Definition at line 182 of file GenVector/RotationZ.h.
Referenced by Inverse().
| bool ROOT::Math::RotationZ::operator!= | ( | const RotationZ & | rhs | ) | const [inline] |
| ForeignVector ROOT::Math::RotationZ::operator() | ( | const ForeignVector & | v | ) | const [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 163 of file GenVector/RotationZ.h.
References operator()(), ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::X(), ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Y(), and ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Z().
| LorentzVector<CoordSystem> ROOT::Math::RotationZ::operator() | ( | const LorentzVector< CoordSystem > & | v | ) | const [inline] |
Rotation operation on a Lorentz vector in any 4D coordinate system.
Definition at line 149 of file GenVector/RotationZ.h.
References ROOT::Math::LorentzVector< CoordSystem >::E(), operator()(), ROOT::Math::LorentzVector< CoordSystem >::Vect(), ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::X(), ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Y(), and ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Z().
| PositionVector3D<CoordSystem, U> ROOT::Math::RotationZ::operator() | ( | const PositionVector3D< CoordSystem, U > & | v | ) | const [inline] |
Rotation operation on a position vector in any coordinate system.
Definition at line 138 of file GenVector/RotationZ.h.
References operator()().
| DisplacementVector3D<CoordSystem,U> ROOT::Math::RotationZ::operator() | ( | const DisplacementVector3D< CoordSystem, U > & | v | ) | const [inline] |
Rotation operation on a cartesian vector.
Rotation operation on a displacement vector in any coordinate system
Definition at line 127 of file GenVector/RotationZ.h.
References ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetXYZ(), ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::x(), ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::y(), and ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::z().
Referenced by operator()(), and operator*().
| AVector ROOT::Math::RotationZ::operator* | ( | const AVector & | v | ) | const [inline] |
Overload operator * for rotation on a vector.
Definition at line 174 of file GenVector/RotationZ.h.
References operator()().
Post-Multiply (on right) by another rotation : T = T*R.
Definition at line 206 of file GenVector/RotationZ.h.
| bool ROOT::Math::RotationZ::operator== | ( | const RotationZ & | rhs | ) | const [inline] |
Equality/inequality operators.
Definition at line 211 of file GenVector/RotationZ.h.
Referenced by operator!=().
| void ROOT::Math::RotationZ::Rectify | ( | ) | [inline] |
Rectify makes sure the angle is in (-pi,pi].
Definition at line 72 of file GenVector/RotationZ.h.
References cos(), ROOT::Math::fabs(), floor(), M_PI, and sin().
Referenced by RotationZ(), and SetAngle().
| void ROOT::Math::RotationZ::SetAngle | ( | Scalar | angle | ) | [inline] |
Set given the angle.
Definition at line 86 of file GenVector/RotationZ.h.
References cos(), Rectify(), and sin().
Referenced by SetComponents().
| void ROOT::Math::RotationZ::SetComponents | ( | Scalar | angle | ) | [inline] |
| Scalar ROOT::Math::RotationZ::SinAngle | ( | ) | const [inline] |
Sine or Cosine of the rotation angle.
Definition at line 108 of file GenVector/RotationZ.h.
Referenced by ROOT::Math::gv_detail::convert(), ROOT::Math::LorentzRotation::LorentzRotation(), ROOT::Math::operator*(), ROOT::Math::Rotation3D::operator*(), and ROOT::Math::AxisAngle::operator*().
1.5.9