Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
HepGeom::Rotate3D Class Reference

#include <Transform3D.h>

Inheritance diagram for HepGeom::Rotate3D:
Inheritance graph
[legend]
Collaboration diagram for HepGeom::Rotate3D:
Collaboration graph
[legend]

Public Member Functions

 Rotate3D ()
 
 Rotate3D (const CLHEP::HepRotation &m)
 
 Rotate3D (double a, const Point3D< double > &p1, const Point3D< double > &p2)
 
 Rotate3D (double a, const Vector3D< double > &v)
 
 Rotate3D (const Point3D< double > &fr1, const Point3D< double > &fr2, const Point3D< double > &to1, const Point3D< double > &to2)
 
- Public Member Functions inherited from HepGeom::Transform3D
 Transform3D ()
 
 Transform3D (const CLHEP::HepRotation &m, const CLHEP::Hep3Vector &v)
 
 Transform3D (const Point3D< double > &fr0, const Point3D< double > &fr1, const Point3D< double > &fr2, const Point3D< double > &to0, const Point3D< double > &to1, const Point3D< double > &to2)
 
 Transform3D (const Transform3D &m)
 
 ~Transform3D ()
 
const Transform3D_row operator[] (int) const
 
double operator() (int, int) const
 
double xx () const
 
double xy () const
 
double xz () const
 
double yx () const
 
double yy () const
 
double yz () const
 
double zx () const
 
double zy () const
 
double zz () const
 
double dx () const
 
double dy () const
 
double dz () const
 
Transform3Doperator= (const Transform3D &m)
 
void setIdentity ()
 
Transform3D inverse () const
 
Transform3D operator* (const Transform3D &b) const
 
void getDecomposition (Scale3D &scale, Rotate3D &rotation, Translate3D &translation) const
 
bool isNear (const Transform3D &t, double tolerance=2.2E-14) const
 
CLHEP::HepRotation getRotation () const
 
CLHEP::Hep3Vector getTranslation () const
 
bool operator== (const Transform3D &transform) const
 
bool operator!= (const Transform3D &transform) const
 

Additional Inherited Members

- Static Public Attributes inherited from HepGeom::Transform3D
static const Transform3D Identity = Transform3D ()
 
- Protected Member Functions inherited from HepGeom::Transform3D
 Transform3D (double XX, double XY, double XZ, double DX, double YX, double YY, double YZ, double DY, double ZX, double ZY, double ZZ, double DZ)
 
void setTransform (double XX, double XY, double XZ, double DX, double YX, double YY, double YZ, double DY, double ZX, double ZY, double ZZ, double DZ)
 
- Protected Attributes inherited from HepGeom::Transform3D
double xx_
 
double xy_
 
double xz_
 
double dx_
 
double yx_
 
double yy_
 
double yz_
 
double dy_
 
double zx_
 
double zy_
 
double zz_
 
double dz_
 

Detailed Description

Constructs a rotation transformation. This class provides additional constructors for Transform3D and should not be used as a separate class.

Example of use:

m = Rotate3D(30.*deg, HepVector3D(1.,1.,1.));
Author
Evgue.nosp@m.ni.T.nosp@m.chern.nosp@m.iaev.nosp@m.@cern.nosp@m..ch

Definition at line 374 of file Transform3D.h.

Constructor & Destructor Documentation

HepGeom::Rotate3D::Rotate3D ( )
inline

Default constructor: sets the Identity transformation.

Definition at line 378 of file Transform3D.h.

HepGeom::Rotate3D::Rotate3D ( const CLHEP::HepRotation m)
inline

Constructor from CLHEP::HepRotation.

HepGeom::Rotate3D::Rotate3D ( double  a,
const Point3D< double > &  p1,
const Point3D< double > &  p2 
)

Constructor from angle and axis given by two points.

Parameters
aangle of rotation
p1begin point of the axis
p2end point of the axis

Definition at line 231 of file Transform3D.cc.

Here is the call graph for this function:

HepGeom::Rotate3D::Rotate3D ( double  a,
const Vector3D< double > &  v 
)
inline

Constructor from angle and axis.

Parameters
aangle of rotation
vaxis of rotation
HepGeom::Rotate3D::Rotate3D ( const Point3D< double > &  fr1,
const Point3D< double > &  fr2,
const Point3D< double > &  to1,
const Point3D< double > &  to2 
)
inline

Constructor for rotation given by original and rotated position of two points. It is assumed that there is no reflection.

Parameters
fr1original position of 1st point
fr2original position of 2nd point
to1rotated position of 1st point
to2rotated position of 2nd point

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