# class ROOT::Math::RotationX

```
Rotation class representing a 3D rotation about the X axis by the angle of rotation.
For efficiency reason, in addition to the the angle, the sine and cosine of the angle are held

@ingroup GenVector

```

## Function Members (Methods)

public:
 ~RotationX() ROOT::Math::RotationX::Scalar Angle() const ROOT::Math::RotationX::Scalar CosAngle() const void GetAngle(ROOT::Math::RotationX::Scalar& angle) const void GetComponents(ROOT::Math::RotationX::Scalar& angle) const ROOT::Math::RotationX Inverse() const void Invert() bool operator!=(const ROOT::Math::RotationX& rhs) const ROOT::Math::RotationX operator*(const ROOT::Math::RotationX& r) const ROOT::Math::PositionVector3D,ROOT::Math::DefaultCoordinateSystemTag> operator*(const ROOT::Math::PositionVector3D,ROOT::Math::DefaultCoordinateSystemTag>& v) const ROOT::Math::DisplacementVector3D,ROOT::Math::DefaultCoordinateSystemTag> operator*(const ROOT::Math::DisplacementVector3D,ROOT::Math::DefaultCoordinateSystemTag>& v) const ROOT::Math::LorentzVector > operator*(const ROOT::Math::LorentzVector >& v) const ROOT::Math::RotationX& operator*=(const ROOT::Math::RotationX& r) ROOT::Math::RotationX& operator=(const ROOT::Math::RotationX&) bool operator==(const ROOT::Math::RotationX& rhs) const void Rectify() ROOT::Math::RotationX RotationX() ROOT::Math::RotationX RotationX(ROOT::Math::RotationX::Scalar angle) ROOT::Math::RotationX RotationX(const ROOT::Math::RotationX&) void SetAngle(ROOT::Math::RotationX::Scalar angle) void SetComponents(ROOT::Math::RotationX::Scalar angle) ROOT::Math::RotationX::Scalar SinAngle() const

## Data Members

private:
 ROOT::Math::RotationX::Scalar fAngle rotation angle ROOT::Math::RotationX::Scalar fCos cosine of the rotaiton angle ROOT::Math::RotationX::Scalar fSin sine of the rotation angle

## Function documentation

``` ========== Constructors and Assignment =====================

Default constructor (identity rotation)

```
`{ }`
explicit RotationX( Scalar angle )
```Construct from an angle

```
Rectify()
void SetAngle(ROOT::Math::RotationX::Scalar angle)
``` ======== Components ==============

Set given the angle.

```
void SetComponents(ROOT::Math::RotationX::Scalar angle)
`{ SetAngle(angle); }`
void GetAngle(ROOT::Math::RotationX::Scalar& angle) const
```Get the angle

```
`{ angle = atan2 (fSin,fCos); }`
void GetComponents(ROOT::Math::RotationX::Scalar& angle) const
`{ GetAngle(angle); }`
Scalar Angle()
```Angle of rotation

```
`{ return atan2 (fSin,fCos); }`
Scalar SinAngle()
```Sine or Cosine of the rotation angle

```
`{ return fSin; }`
Scalar CosAngle()
`{ return fCos; }`
AVector operator*(const AVector & v)
```Overload operator * for rotation on a vector

```
void Invert()
```Invert a rotation in place

```
`{ fAngle = -fAngle; fSin = -fSin; }`

```Return inverse of  a rotation

```
`{ RotationX t(*this); t.Invert(); return t; }`
return ! operator==(const ROOT::Math::RotationX& rhs) const
os << " RotationX(" << r.Angle() << ")

Last update: root/mathcore:\$Id: RotationX.h 21503 2007-12-19 17:34:54Z moneta \$
Copyright (c) 2005 , LCG ROOT FNAL MathLib Team *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.