Class Slerp.Spherical

java.lang.Object
org.apache.commons.numbers.quaternion.Slerp.Spherical
All Implemented Interfaces:
DoubleFunction<Quaternion>
Enclosing class:
Slerp

private class Slerp.Spherical extends Object implements DoubleFunction<Quaternion>
Spherical interpolation, used when the quaternions are too closely aligned. When we may end up dividing by zero (cf. 1/sin(theta) term below). Slerp.Linear interpolation must be used.
  • Field Details

    • theta

      private final double theta
      Angle of rotation.
    • sinTheta

      private final double sinTheta
      Sine of theta.
  • Constructor Details

    • Spherical

      Spherical(double dot)
      Parameters:
      dot - Dot product of the start and end quaternions.
  • Method Details