39 int n =
static_cast<int>( (
fAngle+
Pi())/(2*
Pi()) );
42 int n =
static_cast<int>( -(
fAngle-
Pi())/(2*
Pi()) );
94 os <<
"\n" << a.
Axis() <<
" " << a.
Angle() <<
"\n";
DisplacementVector3D< CoordSystem, Tag > & SetCoordinates(const Scalar src[])
Set internal data based on a C-style array of 3 Scalar numbers.
Namespace for new ROOT classes and functions.
Class describing a 3D cartesian coordinate system (x, y, z coordinates)
std::ostream & operator<<(std::ostream &os, const AxisAngle &a)
Stream Output and Input.
AxisAngle class describing rotation represented with direction axis (3D Vector) and an angle of rotat...
Scalar X() const
Cartesian X, converting if necessary from internal coordinate system.
Scalar Z() const
Cartesian Z, converting if necessary from internal coordinate system.
Scalar Y() const
Cartesian Y, converting if necessary from internal coordinate system.
AxisVector Axis() const
accesss to rotation axis
void Rectify()
Re-adjust components to eliminate small deviations from the axis being a unit vector and angles out o...
Class describing a generic displacement vector in 3 dimensions.
Scalar Angle() const
access to rotation angle
XYZVector operator()(const XYZVector &v) const
Namespace for new Math classes and functions.
Scalar Mag2() const
Magnitute squared ( r^2 in spherical coordinate)
Rotation3D::Scalar Scalar
Scalar Dot(const DisplacementVector3D< OtherCoords, Tag > &v) const
Return the scalar (dot) product of two displacement vectors.