107 return acos(chordLength);
110#if !defined(ROOT_MATH_SYCL) && !defined(ROOT_MATH_CUDA)
117 os <<
"\n{" <<
q.U() <<
" " <<
q.I() <<
" " <<
q.J() <<
" " <<
q.K() <<
"}\n";
AxisAngle class describing rotation represented with direction axis (3D Vector) and an angle of rotat...
EulerAngles class describing rotation as three angles (Euler Angles).
Rotation class with the (3D) rotation represented by a unit quaternion (u, i, j, k).
AVector operator*(const AVector &v) const
Overload operator * for rotation on a vector.
void Rectify()
Re-adjust components to eliminate small deviations from |Q| = 1 orthonormality.
Quaternion()
Default constructor (identity rotation).
Scalar Distance(const Quaternion &q) const
Distance between two rotations in Quaternion form Note: The rotation group is isomorphic to a 3-spher...
Rotation class with the (3D) rotation represented by a 3x3 orthogonal matrix.
Rotation class with the (3D) rotation represented by angles describing first a rotation of an angle p...
Scalar math_sqrt(Scalar x)
std::ostream & operator<<(std::ostream &os, const AxisAngle &a)
Stream Output and Input.
Scalar math_fabs(Scalar x)