Logo ROOT   6.08/07
Reference Guide
List of all members | Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TRotation Class Reference

The TRotation class describes a rotation of objects of the TVector3 class.

It is a 3*3 matrix of Double_t:

| xx xy xz |
| yx yy yz |
| zx zy zz |

It describes a so called active rotation, i.e. rotation of objects inside a static system of coordinates. In case you want to rotate the frame and want to know the coordinates of objects in the rotated system, you should apply the inverse rotation to the objects. If you want to transform coordinates from the rotated frame to the original frame you have to apply the direct transformation.

A rotation around a specified axis means counterclockwise rotation around the positive direction of the axis.

Declaration, Access, Comparisons

TRotation r; // r initialized as identity
TRotation m(r); // m = r

There is no direct way to set the matrix elements - to ensure that a TRotation object always describes a real rotation. But you can get the values by the member functions XX()..ZZ() or the (,) operator:

Double_t xx = r.XX(); // the same as xx=r(0,0)
xx = r(0,0);
if (r==m) {...} // test for equality
if (r!=m) {..} // test for inequality
if (r.IsIdentity()) {...} // test for identity

Rotation around axes

The following matrices describe counterclockwise rotations around coordinate axes

| 1 0 0 |
Rx(a) = | 0 cos(a) -sin(a) |
| 0 sin(a) cos(a) |
| cos(a) 0 sin(a) |
Ry(a) = | 0 1 0 |
| -sin(a) 0 cos(a) |
| cos(a) -sin(a) 0 |
Rz(a) = | sin(a) cos(a) 0 |
| 0 0 1 |

and are implemented as member functions RotateX(), RotateY() and RotateZ():

r.RotateX(TMath::Pi()); // rotation around the x-axis

Rotation around arbitrary axis

The member function Rotate() allows to rotate around an arbitrary vector (not necessary a unit one) and returns the result.

r.Rotate(TMath::Pi()/3,TVector3(3,4,5));

It is possible to find a unit vector and an angle, which describe the same rotation as the current one:

Double_t angle;
TVector3 axis;
r.GetAngleAxis(angle,axis);

Rotation of local axes

Member function RotateAxes() adds a rotation of local axes to the current rotation and returns the result:

TVector3 newX(0,1,0);
TVector3 newY(0,0,1);
TVector3 newZ(1,0,0);
a.RotateAxes(newX,newY,newZ);

Member functions ThetaX(), ThetaY(), ThetaZ(), PhiX(), PhiY(),PhiZ() return azimuth and polar angles of the rotated axes:

Double_t tx,ty,tz,px,py,pz;
tx= a.ThetaX();
...
pz= a.PhiZ();

Setting The Rotations

The member function SetToIdentity() will set the rotation object to the identity (no rotation).

With a minor caveat, the Euler angles of the rotation may be set using SetXEulerAngles() or individually set with SetXPhi(), SetXTheta(), and SetXPsi(). These routines set the Euler angles using the X-convention which is defined by a rotation about the Z-axis, about the new X-axis, and about the new Z-axis. This is the convention used in Landau and Lifshitz, Goldstein and other common physics texts. The Y-convention Euler angles can be set with SetYEulerAngles(), SetYPhi(), SetYTheta(), and SetYPsi(). The caveat is that Euler angles usually define the rotation of the new coordinate system with respect to the original system, however, the TRotation class specifies the rotation of the object in the original system (an active rotation). To recover the usual Euler rotations (ie. rotate the system not the object), you must take the inverse of the rotation.

The member functions SetXAxis(), SetYAxis(), and SetZAxis() will create a rotation which rotates the requested axis of the object to be parallel to a vector. If used with one argument, the rotation about that axis is arbitrary. If used with two arguments, the second variable defines the XY, YZ, or ZX respectively.

Inverse rotation

...
b = a.Inverse(); // b is inverse of a, a is unchanged
b = a.Invert(); // invert a and set b = a

Compound Rotations

The operator * has been implemented in a way that follows the mathematical notation of a product of the two matrices which describe the two consecutive rotations. Therefore the second rotation should be placed first:

r = r2 * r1;

Rotation of TVector3

The TRotation class provides an operator * which allows to express a rotation of a TVector3 analog to the mathematical notation

| x' | | xx xy xz | | x |
| y' | = | yx yy yz | | y |
| z' | | zx zy zz | | z |

e.g.:

TVector3 v(1,1,1);
v = r * v;

You can also use the Transform() member function or the operator *= of the TVector3 class:

v.Transform(r);
v *= r; //Attention v = r * v

Definition at line 22 of file TRotation.h.

Classes

class  TRotationRow
 

Public Member Functions

 TRotation ()
 Constructor. More...
 
 TRotation (const TRotation &)
 Constructor. More...
 
 TRotation (const TQuaternion &)
 Constructor for a rotation based on a Quaternion if magnitude of quaternion is null, creates identity rotation if quaternion is non-unit, creates rotation corresponding to the normalized (unit) quaternion. More...
 
virtual ~TRotation ()
 
void AngleAxis (Double_t &, TVector3 &) const
 Rotation defined by an angle and a vector. More...
 
Double_t GetXPhi (void) const
 Return phi angle. More...
 
Double_t GetXPsi (void) const
 Get psi angle. More...
 
Double_t GetXTheta (void) const
 Return XTheta. More...
 
Double_t GetYPhi (void) const
 Return YPhi. More...
 
Double_t GetYPsi (void) const
 Return YPsi. More...
 
Double_t GetYTheta (void) const
 Return YTheta. More...
 
TRotation Inverse () const
 
TRotationInvert ()
 
Bool_t IsIdentity () const
 
void MakeBasis (TVector3 &xAxis, TVector3 &yAxis, TVector3 &zAxis) const
 Make the Z axis into a unit variable. More...
 
Bool_t operator!= (const TRotation &) const
 
Double_t operator() (int, int) const
 Dereferencing operator const. More...
 
TVector3 operator* (const TVector3 &) const
 
TRotation operator* (const TRotation &) const
 Multiplication operator. More...
 
TRotationoperator*= (const TRotation &)
 
TRotationoperator= (const TRotation &)
 
Bool_t operator== (const TRotation &) const
 
TRotationRow operator[] (int) const
 
Double_t PhiX () const
 Return Phi. More...
 
Double_t PhiY () const
 Return Phi. More...
 
Double_t PhiZ () const
 Return Phi. More...
 
TRotationRotate (Double_t, const TVector3 &)
 Rotate along an axis. More...
 
TRotationRotate (Double_t, const TVector3 *)
 
TRotationRotateAxes (const TVector3 &newX, const TVector3 &newY, const TVector3 &newZ)
 Rotate axes. More...
 
TRotationRotateX (Double_t)
 Rotate around x. More...
 
TRotationRotateXEulerAngles (Double_t phi, Double_t theta, Double_t psi)
 Rotate using the x-convention. More...
 
TRotationRotateY (Double_t)
 Rotate around y. More...
 
TRotationRotateYEulerAngles (Double_t phi, Double_t theta, Double_t psi)
 Rotate using the y-convention. More...
 
TRotationRotateZ (Double_t)
 Rotate around z. More...
 
TRotationSetToIdentity ()
 
TRotationSetXAxis (const TVector3 &axis)
 Set X axis. More...
 
TRotationSetXAxis (const TVector3 &axis, const TVector3 &xyPlane)
 Set X axis. More...
 
TRotationSetXEulerAngles (Double_t phi, Double_t theta, Double_t psi)
 Rotate using the x-convention (Landau and Lifshitz, Goldstein, &c) by doing the explicit rotations. More...
 
void SetXPhi (Double_t)
 Set XPhi. More...
 
void SetXPsi (Double_t)
 Set XPsi. More...
 
void SetXTheta (Double_t)
 Set XTheta. More...
 
TRotationSetYAxis (const TVector3 &axis)
 Set Y axis. More...
 
TRotationSetYAxis (const TVector3 &axis, const TVector3 &yzPlane)
 Set Y axis. More...
 
TRotationSetYEulerAngles (Double_t phi, Double_t theta, Double_t psi)
 Rotate using the y-convention. More...
 
void SetYPhi (Double_t)
 Set YPhi. More...
 
void SetYPsi (Double_t)
 Set YPsi. More...
 
void SetYTheta (Double_t)
 Set YTheta. More...
 
TRotationSetZAxis (const TVector3 &axis)
 Set Z axis. More...
 
TRotationSetZAxis (const TVector3 &axis, const TVector3 &zxPlane)
 Set Z axis. More...
 
Double_t ThetaX () const
 Return Theta. More...
 
Double_t ThetaY () const
 Return Theta. More...
 
Double_t ThetaZ () const
 Return Theta. More...
 
TRotationTransform (const TRotation &)
 
Double_t XX () const
 
Double_t XY () const
 
Double_t XZ () const
 
Double_t YX () const
 
Double_t YY () const
 
Double_t YZ () const
 
Double_t ZX () const
 
Double_t ZY () const
 
Double_t ZZ () const
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 

Protected Member Functions

 TRotation (Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Double_t)
 Constructor. More...
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
void MakeZombie ()
 

Protected Attributes

Double_t fxx
 
Double_t fxy
 
Double_t fxz
 
Double_t fyx
 
Double_t fyy
 
Double_t fyz
 
Double_t fzx
 
Double_t fzy
 
Double_t fzz
 

Additional Inherited Members

- Public Types inherited from TObject
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

#include <TRotation.h>

Inheritance diagram for TRotation:
[legend]

Constructor & Destructor Documentation

◆ TRotation() [1/4]

TRotation::TRotation ( )

Constructor.

Definition at line 196 of file TRotation.cxx.

◆ TRotation() [2/4]

TRotation::TRotation ( const TRotation m)

Constructor.

Definition at line 203 of file TRotation.cxx.

◆ TRotation() [3/4]

TRotation::TRotation ( const TQuaternion Q)

Constructor for a rotation based on a Quaternion if magnitude of quaternion is null, creates identity rotation if quaternion is non-unit, creates rotation corresponding to the normalized (unit) quaternion.

Definition at line 259 of file TRotation.cxx.

◆ ~TRotation()

virtual TRotation::~TRotation ( )
inlinevirtual

Definition at line 46 of file TRotation.h.

◆ TRotation() [4/4]

TRotation::TRotation ( Double_t  mxx,
Double_t  mxy,
Double_t  mxz,
Double_t  myx,
Double_t  myy,
Double_t  myz,
Double_t  mzx,
Double_t  mzy,
Double_t  mzz 
)
protected

Constructor.

Definition at line 210 of file TRotation.cxx.

Member Function Documentation

◆ AngleAxis()

void TRotation::AngleAxis ( Double_t angle,
TVector3 axis 
) const

Rotation defined by an angle and a vector.

Definition at line 463 of file TRotation.cxx.

◆ GetXPhi()

Double_t TRotation::GetXPhi ( void  ) const

Return phi angle.

Definition at line 579 of file TRotation.cxx.

◆ GetXPsi()

Double_t TRotation::GetXPsi ( void  ) const

Get psi angle.

Definition at line 645 of file TRotation.cxx.

◆ GetXTheta()

Double_t TRotation::GetXTheta ( void  ) const

Return XTheta.

Definition at line 631 of file TRotation.cxx.

◆ GetYPhi()

Double_t TRotation::GetYPhi ( void  ) const

Return YPhi.

Definition at line 624 of file TRotation.cxx.

◆ GetYPsi()

Double_t TRotation::GetYPsi ( void  ) const

Return YPsi.

Definition at line 691 of file TRotation.cxx.

◆ GetYTheta()

Double_t TRotation::GetYTheta ( void  ) const

Return YTheta.

Definition at line 638 of file TRotation.cxx.

◆ Inverse()

TRotation TRotation::Inverse ( ) const
inline

Definition at line 273 of file TRotation.h.

◆ Invert()

TRotation & TRotation::Invert ( )
inline

Definition at line 277 of file TRotation.h.

◆ IsIdentity()

Bool_t TRotation::IsIdentity ( ) const
inline

Definition at line 247 of file TRotation.h.

◆ MakeBasis()

void TRotation::MakeBasis ( TVector3 xAxis,
TVector3 yAxis,
TVector3 zAxis 
) const

Make the Z axis into a unit variable.

Definition at line 767 of file TRotation.cxx.

◆ operator!=()

Bool_t TRotation::operator!= ( const TRotation m) const
inline

Definition at line 241 of file TRotation.h.

◆ operator()()

Double_t TRotation::operator() ( int  i,
int  j 
) const

Dereferencing operator const.

Definition at line 219 of file TRotation.cxx.

◆ operator*() [1/2]

TVector3 TRotation::operator* ( const TVector3 p) const
inline

Definition at line 259 of file TRotation.h.

◆ operator*() [2/2]

TRotation TRotation::operator* ( const TRotation b) const

Multiplication operator.

Definition at line 242 of file TRotation.cxx.

◆ operator*=()

TRotation & TRotation::operator*= ( const TRotation m)
inline

Definition at line 265 of file TRotation.h.

◆ operator=()

TRotation & TRotation::operator= ( const TRotation m)
inline

Definition at line 222 of file TRotation.h.

◆ operator==()

Bool_t TRotation::operator== ( const TRotation m) const
inline

Definition at line 235 of file TRotation.h.

◆ operator[]()

TRotation::TRotationRow TRotation::operator[] ( int  i) const
inline

Definition at line 218 of file TRotation.h.

◆ PhiX()

Double_t TRotation::PhiX ( ) const

Return Phi.

Definition at line 421 of file TRotation.cxx.

◆ PhiY()

Double_t TRotation::PhiY ( ) const

Return Phi.

Definition at line 428 of file TRotation.cxx.

◆ PhiZ()

Double_t TRotation::PhiZ ( ) const

Return Phi.

Definition at line 435 of file TRotation.cxx.

◆ Rotate() [1/2]

TRotation & TRotation::Rotate ( Double_t  a,
const TVector3 axis 
)

Rotate along an axis.

Definition at line 325 of file TRotation.cxx.

◆ Rotate() [2/2]

TRotation & TRotation::Rotate ( Double_t  psi,
const TVector3 p 
)
inline

Definition at line 281 of file TRotation.h.

◆ RotateAxes()

TRotation & TRotation::RotateAxes ( const TVector3 newX,
const TVector3 newY,
const TVector3 newZ 
)

Rotate axes.

Definition at line 394 of file TRotation.cxx.

◆ RotateX()

TRotation & TRotation::RotateX ( Double_t  a)

Rotate around x.

Definition at line 346 of file TRotation.cxx.

◆ RotateXEulerAngles()

TRotation & TRotation::RotateXEulerAngles ( Double_t  phi,
Double_t  theta,
Double_t  psi 
)

Rotate using the x-convention.

Definition at line 515 of file TRotation.cxx.

◆ RotateY()

TRotation & TRotation::RotateY ( Double_t  a)

Rotate around y.

Definition at line 362 of file TRotation.cxx.

◆ RotateYEulerAngles()

TRotation & TRotation::RotateYEulerAngles ( Double_t  phi,
Double_t  theta,
Double_t  psi 
)

Rotate using the y-convention.

Definition at line 526 of file TRotation.cxx.

◆ RotateZ()

TRotation & TRotation::RotateZ ( Double_t  a)

Rotate around z.

Definition at line 378 of file TRotation.cxx.

◆ SetToIdentity()

TRotation & TRotation::SetToIdentity ( )
inline

Definition at line 253 of file TRotation.h.

◆ SetXAxis() [1/2]

TRotation & TRotation::SetXAxis ( const TVector3 axis)

Set X axis.

Definition at line 713 of file TRotation.cxx.

◆ SetXAxis() [2/2]

TRotation & TRotation::SetXAxis ( const TVector3 axis,
const TVector3 xyPlane 
)

Set X axis.

Definition at line 698 of file TRotation.cxx.

◆ SetXEulerAngles()

TRotation & TRotation::SetXEulerAngles ( Double_t  phi,
Double_t  theta,
Double_t  psi 
)

Rotate using the x-convention (Landau and Lifshitz, Goldstein, &c) by doing the explicit rotations.

This is slightly less efficient than directly applying the rotation, but makes the code much clearer. My presumption is that this code is not going to be a speed bottle neck.

Definition at line 488 of file TRotation.cxx.

◆ SetXPhi()

void TRotation::SetXPhi ( Double_t  phi)

Set XPhi.

Definition at line 537 of file TRotation.cxx.

◆ SetXPsi()

void TRotation::SetXPsi ( Double_t  psi)

Set XPsi.

Definition at line 551 of file TRotation.cxx.

◆ SetXTheta()

void TRotation::SetXTheta ( Double_t  theta)

Set XTheta.

Definition at line 544 of file TRotation.cxx.

◆ SetYAxis() [1/2]

TRotation & TRotation::SetYAxis ( const TVector3 axis)

Set Y axis.

Definition at line 736 of file TRotation.cxx.

◆ SetYAxis() [2/2]

TRotation & TRotation::SetYAxis ( const TVector3 axis,
const TVector3 yzPlane 
)

Set Y axis.

Definition at line 721 of file TRotation.cxx.

◆ SetYEulerAngles()

TRotation & TRotation::SetYEulerAngles ( Double_t  phi,
Double_t  theta,
Double_t  psi 
)

Rotate using the y-convention.

Definition at line 502 of file TRotation.cxx.

◆ SetYPhi()

void TRotation::SetYPhi ( Double_t  phi)

Set YPhi.

Definition at line 558 of file TRotation.cxx.

◆ SetYPsi()

void TRotation::SetYPsi ( Double_t  psi)

Set YPsi.

Definition at line 572 of file TRotation.cxx.

◆ SetYTheta()

void TRotation::SetYTheta ( Double_t  theta)

Set YTheta.

Definition at line 565 of file TRotation.cxx.

◆ SetZAxis() [1/2]

TRotation & TRotation::SetZAxis ( const TVector3 axis)

Set Z axis.

Definition at line 759 of file TRotation.cxx.

◆ SetZAxis() [2/2]

TRotation & TRotation::SetZAxis ( const TVector3 axis,
const TVector3 zxPlane 
)

Set Z axis.

Definition at line 744 of file TRotation.cxx.

◆ ThetaX()

Double_t TRotation::ThetaX ( ) const

Return Theta.

Definition at line 442 of file TRotation.cxx.

◆ ThetaY()

Double_t TRotation::ThetaY ( ) const

Return Theta.

Definition at line 449 of file TRotation.cxx.

◆ ThetaZ()

Double_t TRotation::ThetaZ ( ) const

Return Theta.

Definition at line 456 of file TRotation.cxx.

◆ Transform()

TRotation & TRotation::Transform ( const TRotation m)
inline

Definition at line 269 of file TRotation.h.

◆ XX()

Double_t TRotation::XX ( ) const
inline

Definition at line 192 of file TRotation.h.

◆ XY()

Double_t TRotation::XY ( ) const
inline

Definition at line 193 of file TRotation.h.

◆ XZ()

Double_t TRotation::XZ ( ) const
inline

Definition at line 194 of file TRotation.h.

◆ YX()

Double_t TRotation::YX ( ) const
inline

Definition at line 195 of file TRotation.h.

◆ YY()

Double_t TRotation::YY ( ) const
inline

Definition at line 196 of file TRotation.h.

◆ YZ()

Double_t TRotation::YZ ( ) const
inline

Definition at line 197 of file TRotation.h.

◆ ZX()

Double_t TRotation::ZX ( ) const
inline

Definition at line 198 of file TRotation.h.

◆ ZY()

Double_t TRotation::ZY ( ) const
inline

Definition at line 199 of file TRotation.h.

◆ ZZ()

Double_t TRotation::ZZ ( ) const
inline

Definition at line 200 of file TRotation.h.

Member Data Documentation

◆ fxx

Double_t TRotation::fxx
protected

Definition at line 184 of file TRotation.h.

◆ fxy

Double_t TRotation::fxy
protected

Definition at line 184 of file TRotation.h.

◆ fxz

Double_t TRotation::fxz
protected

Definition at line 184 of file TRotation.h.

◆ fyx

Double_t TRotation::fyx
protected

Definition at line 184 of file TRotation.h.

◆ fyy

Double_t TRotation::fyy
protected

Definition at line 184 of file TRotation.h.

◆ fyz

Double_t TRotation::fyz
protected

Definition at line 184 of file TRotation.h.

◆ fzx

Double_t TRotation::fzx
protected

Definition at line 184 of file TRotation.h.

◆ fzy

Double_t TRotation::fzy
protected

Definition at line 184 of file TRotation.h.

◆ fzz

Double_t TRotation::fzz
protected

Definition at line 184 of file TRotation.h.


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