Class Slerp.Spherical
java.lang.Object
org.apache.commons.numbers.quaternion.Slerp.Spherical
- All Implemented Interfaces:
DoubleFunction<Quaternion>
- Enclosing class:
Slerp
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
theta
private final double thetaAngle of rotation. -
sinTheta
private final double sinThetaSine oftheta
.
-
-
Constructor Details
-
Spherical
Spherical(double dot) - Parameters:
dot
- Dot product of the start and end quaternions.
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceDoubleFunction<Quaternion>
-