CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <Transform3D.h>
Inheritance diagram for HepGeom::Rotate3D:
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) |
Example of use:
Transform3D m; m = Rotate3D(30.*deg, HepVector3D(1.,1.,1.));
Definition at line 375 of file Transform3D.h.
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.
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.
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.
fr1 | original position of 1st point | |
fr2 | original position of 2nd point | |
to1 | rotated position of 1st point | |
to2 | rotated position of 2nd point |