 ROOT   Reference Guide ROOT::Math::RotationY Class Reference

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

Overview of the physics vector library

Definition at line 45 of file RotationY.h.

## Public Types

typedef double Scalar

## Public Member Functions

RotationY ()
Default constructor (identity rotation) More...

RotationY (Scalar angle)
Construct from an angle. More...

Scalar Angle () const
Angle of rotation. More...

Scalar CosAngle () const

void GetAngle (Scalar &angle) const
Get the angle. More...

void GetComponents (Scalar &angle) const

RotationY Inverse () const
Return inverse of a rotation. More...

void Invert ()
Invert a rotation in place. More...

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. More...

template<class ForeignVector >
ForeignVector operator() (const ForeignVector &v) const
Rotation operation on an arbitrary vector v. More...

template<class CoordSystem >
LorentzVector< CoordSystem > operator() (const LorentzVector< CoordSystem > &v) const
Rotation operation on a Lorentz vector in any 4D coordinate system. More...

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. More...

template<class AVector >
AVector operator* (const AVector &v) const
Overload operator * for rotation on a vector. More...

RotationY operator* (const RotationY &r) const
Multiply (combine) two rotations. More...

RotationYoperator*= (const RotationY &r)
Post-Multiply (on right) by another rotation : T = T*R. More...

bool operator== (const RotationY &rhs) const
Equality/inequality operators. More...

void Rectify ()
Rectify makes sure the angle is in (-pi,pi]. More...

void SetAngle (Scalar angle)
Set given the angle. More...

void SetComponents (Scalar angle)

Scalar SinAngle () const
Sine or Cosine of the rotation angle. More...

## Private Attributes

Scalar fAngle

Scalar fCos

Scalar fSin

#include <Math/GenVector/RotationY.h>

## ◆ Scalar

 typedef double ROOT::Math::RotationY::Scalar

Definition at line 49 of file RotationY.h.

## ◆ RotationY() [1/2]

 ROOT::Math::RotationY::RotationY ( )
inline

Default constructor (identity rotation)

Definition at line 57 of file RotationY.h.

## ◆ RotationY() [2/2]

 ROOT::Math::RotationY::RotationY ( Scalar angle )
inlineexplicit

Construct from an angle.

Definition at line 62 of file RotationY.h.

## ◆ Angle()

 Scalar ROOT::Math::RotationY::Angle ( ) const
inline

Angle of rotation.

Definition at line 105 of file RotationY.h.

## ◆ CosAngle()

 Scalar ROOT::Math::RotationY::CosAngle ( ) const
inline

Definition at line 111 of file RotationY.h.

## ◆ GetAngle()

 void ROOT::Math::RotationY::GetAngle ( Scalar & angle ) const
inline

Get the angle.

Definition at line 99 of file RotationY.h.

## ◆ GetComponents()

 void ROOT::Math::RotationY::GetComponents ( Scalar & angle ) const
inline

Definition at line 100 of file RotationY.h.

## ◆ Inverse()

 RotationY ROOT::Math::RotationY::Inverse ( ) const
inline

Return inverse of a rotation.

Definition at line 189 of file RotationY.h.

## ◆ Invert()

 void ROOT::Math::RotationY::Invert ( )
inline

Invert a rotation in place.

Definition at line 184 of file RotationY.h.

## ◆ operator!=()

 bool ROOT::Math::RotationY::operator!= ( const RotationY & rhs ) const
inline

Definition at line 217 of file RotationY.h.

## ◆ operator()() [1/4]

template<class CoordSystem , class U >
 DisplacementVector3D< CoordSystem, U > ROOT::Math::RotationY::operator() ( const DisplacementVector3D< CoordSystem, U > & v ) const
inline

Rotation operation on a displacement vector in any coordinate system.

Definition at line 129 of file RotationY.h.

## ◆ operator()() [2/4]

template<class ForeignVector >
 ForeignVector ROOT::Math::RotationY::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 165 of file RotationY.h.

## ◆ operator()() [3/4]

template<class CoordSystem >
 LorentzVector< CoordSystem > ROOT::Math::RotationY::operator() ( const LorentzVector< CoordSystem > & v ) const
inline

Rotation operation on a Lorentz vector in any 4D coordinate system.

Definition at line 151 of file RotationY.h.

## ◆ operator()() [4/4]

template<class CoordSystem , class U >
 PositionVector3D< CoordSystem, U > ROOT::Math::RotationY::operator() ( const PositionVector3D< CoordSystem, U > & v ) const
inline

Rotation operation on a position vector in any coordinate system.

Definition at line 140 of file RotationY.h.

## ◆ operator*() [1/2]

template<class AVector >
 AVector ROOT::Math::RotationY::operator* ( const AVector & v ) const
inline

Overload operator * for rotation on a vector.

Definition at line 176 of file RotationY.h.

## ◆ operator*() [2/2]

 RotationY ROOT::Math::RotationY::operator* ( const RotationY & r ) const
inline

Multiply (combine) two rotations.

Definition at line 196 of file RotationY.h.

## ◆ operator*=()

 RotationY & ROOT::Math::RotationY::operator*= ( const RotationY & r )
inline

Post-Multiply (on right) by another rotation : T = T*R.

Definition at line 208 of file RotationY.h.

## ◆ operator==()

 bool ROOT::Math::RotationY::operator== ( const RotationY & rhs ) const
inline

Equality/inequality operators.

Definition at line 213 of file RotationY.h.

## ◆ Rectify()

 void ROOT::Math::RotationY::Rectify ( )
inline

Rectify makes sure the angle is in (-pi,pi].

Definition at line 74 of file RotationY.h.

## ◆ SetAngle()

 void ROOT::Math::RotationY::SetAngle ( Scalar angle )
inline

Set given the angle.

Definition at line 88 of file RotationY.h.

## ◆ SetComponents()

 void ROOT::Math::RotationY::SetComponents ( Scalar angle )
inline

Definition at line 94 of file RotationY.h.

## ◆ SinAngle()

 Scalar ROOT::Math::RotationY::SinAngle ( ) const
inline

Sine or Cosine of the rotation angle.

Definition at line 110 of file RotationY.h.

## ◆ fAngle

 Scalar ROOT::Math::RotationY::fAngle
private

Definition at line 223 of file RotationY.h.

## ◆ fCos

 Scalar ROOT::Math::RotationY::fCos
private

Definition at line 225 of file RotationY.h.

## ◆ fSin

 Scalar ROOT::Math::RotationY::fSin
private

Definition at line 224 of file RotationY.h.

Libraries for ROOT::Math::RotationY: [legend]

The documentation for this class was generated from the following file: