42 int n =
static_cast<int>( -(
fAngle-
Pi())/(2*
Pi()) );
74 DisplacementVector3D< Cartesian3D<double> >
76 operator() (
const DisplacementVector3D< Cartesian3D<double> > &
v)
const
81 return DisplacementVector3D< Cartesian3D<double> >
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.
XYZVector operator()(const XYZVector &v) const
Scalar Y() const
Cartesian Y, converting if necessary from internal coordinate system.
AxisVector Axis() const
accesss to rotation axis
Scalar Dot(const DisplacementVector3D< OtherCoords, Tag > &v) const
Return the scalar (dot) product of two displacement vectors.
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 Mag2() const
Magnitute squared ( r^2 in spherical coordinate)
Scalar Angle() const
access to rotation angle
void Rectify()
Re-adjust components to eliminate small deviations from the axis being a unit vector and angles out o...
Scalar Z() const
Cartesian Z, converting if necessary from internal coordinate system.
unsigned int r2[N_CITIES]