CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Public Member Functions
HepGeom::Rotate3D Class Reference

#include <Transform3D.h>

Inheritance diagram for HepGeom::Rotate3D:
HepGeom::Transform3D HepGeom::Transform3D HepGeom::RotateX3D HepGeom::RotateX3D HepGeom::RotateY3D HepGeom::RotateY3D HepGeom::RotateZ3D 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)
 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 CLHEP/Geometry/Transform3D.h.


Constructor & Destructor Documentation

Default constructor: sets the Identity transformation.

Definition at line 379 of file CLHEP/Geometry/Transform3D.h.

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 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:
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

Default constructor: sets the Identity transformation.

Definition at line 379 of file Geometry/Transform3D.h.

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
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: