CLHEP 2.0.4.7 Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

HepGeom::Rotate3D Class Reference

#include <Transform3D.h>

Inheritance diagram for HepGeom::Rotate3D:

HepGeom::Transform3D HepGeom::RotateX3D HepGeom::RotateY3D HepGeom::RotateZ3D List of all members.

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)

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:

   Transform3D m;
   m = Rotate3D(30.*deg, HepVector3D(1.,1.,1.));

Author:
<Evgueni.Tcherniaev@cern.ch>

Definition at line 375 of file Transform3D.h.


Constructor & Destructor Documentation

HepGeom::Rotate3D::Rotate3D (  )  [inline]

Default constructor: sets the Identity transformation.

Definition at line 379 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:
a angle of rotation
p1 begin point of the axis
p2 end point of the axis

Definition at line 235 of file Transform3D.cc.

References HepGeom::Transform3D::setTransform(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().

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

Constructor from angle and axis.

Parameters:
a angle of rotation
v axis 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:
fr1 original position of 1st point
fr2 original position of 2nd point
to1 rotated position of 1st point
to2 rotated position of 2nd point


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 22:02:32 2010 for CLHEP by  doxygen 1.4.7