This is the definition of the HepRotation class for performing
rotations on objects of the
Hep3Vector class.
Authors
Leif Lonnblad.
See also
Hep3Vector,
HepLorentzVector,
HepLorentzRotation.
Declaration
#include "CLHEP/Vector/Rotation.h"
class HepRotation
Public Member Functions
- Constructor
- inline HepRotation()
- Default constructor. Gives a unit matrix.
- Copy constructor
- inline HepRotation(const HepRotation &)
- =
- inline HepRotation & operator = (const HepRotation &)
- Assignment.
- *
- inline Hep3Vector operator * (const Hep3Vector &) const
- Multiplication with a Hep3Vector.
- HepRotation operator * (const HepRotation &) const
- Matrix multiplication.
- *=
- inline HepRotation & operator *= (const HepRotation &)
- Matrix multiplication.
- ==
- inline HepBoolean operator == (const HepRotation &) const
- Test for equality (Geant4).
- !=
- inline HepBoolean operator != (const HepRotation &) const
- Test for inequality (Geant4).
- ()
- HepDouble operator () (int, int) const
- Returns (i,j) element of the rotation matrix.
- []
- inline const HepRotation_row operator [] (int) const
- Returns object of the helper class for C-style subscripting
r[i][j]
- getAngleAxis
- void getAngleAxis(HepDouble &, Hep3Vector &) const
- Returns the rotation angle and rotation axis (Geant4).
- inverse
- inline HepRotation inverse() const
- Returns the inverse.
- invert
- inline HepRotation & invert()
- Inverts the Rotation matrix.
- isIdentity
- inline HepBoolean isIdentity() const
- Returns true if the identity matrix (Geant4).
- phiX
- HepDouble phiX() const
- Returns azimuth angle (rads) of the rotated x-axis.
(Geant4).
- phiY
- HepDouble phiY() const
- Returns azimuth angle (rads) of the rotated y-axis.
(Geant4).
- phiZ
- HepDouble phiZ() const
- Returns azimuth angle (rads) of the rotated z-axis.
(Geant4).
- rotate
- HepRotation & rotate(HepDouble, const Hep3Vector &)
- inline HepRotation & rotate(HepDouble, const Hep3Vector *)
- Rotation around a specified vector.
- rotateAxes
- HepRotation & rotateAxes(const Hep3Vector & newX,
const Hep3Vector & newY, const Hep3Vector & newZ)
- Rotation of local axes (Geant4).
- rotateX
- HepRotation & rotateX(HepDouble)
- Rotation around the x-axis.
- rotateY
- HepRotation & rotateY(HepDouble)
- Rotation around the y-axis.
- rotateZ
- HepRotation & rotateZ(HepDouble)
- Rotation around the z-axis.
- thetaX
- HepDouble thetaX() const
- Returns polar angle (rads) of the rotated x-axis.
(Geant4).
- thetaY
- HepDouble thetaY() const
- Returns polar angle (rads) of the rotated y-axis.
(Geant4).
- thetaZ
- HepDouble thetaZ() const
- Returns polar angle (rads) of the rotated z-axis.
(Geant4).
- transform
- inline HepRotation & transform(const HepRotation &)
- Multiplication with another HepRotation object.
- Note a *= b <=> a = a * b
while a.transform(b) <=> a = b * a
- xx
- inline HepDouble xx() const
- Return xx element of the rotation matrix (Geant4).
- xy
- inline HepDouble xy() const
- Return xy element of the rotation matrix (Geant4).
- xz
- inline HepDouble xz() const
- Return xz element of the rotation matrix (Geant4).
- yx
- inline HepDouble yx() const
- Return yx element of the rotation matrix (Geant4).
- yy
- inline HepDouble yy() const
- Return yy element of the rotation matrix (Geant4).
- yz
- inline HepDouble yz() const
- Return yz element of the rotation matrix (Geant4).
- zx
- inline HepDouble zx() const
- Return zx element of the rotation matrix (Geant4).
- zy
- inline HepDouble zy() const
- Return zy element of the rotation matrix (Geant4).
- zz
- inline HepDouble zz() const
- Return zz element of the rotation matrix (Geant4).
Example
CLHEP/test/testRotation.cc
03 May 1999
EVC