Class Slerp.Spherical
- java.lang.Object
-
- org.apache.commons.numbers.quaternion.Slerp.Spherical
-
- All Implemented Interfaces:
java.util.function.DoubleFunction<Quaternion>
- Enclosing class:
- Slerp
private class Slerp.Spherical extends java.lang.Object implements java.util.function.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.
-
-
Constructor Summary
Constructors Constructor Description Spherical(double dot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Quaternion
apply(double t)
-
-
-
Field Detail
-
theta
private final double theta
Angle of rotation.
-
sinTheta
private final double sinTheta
Sine oftheta
.
-
-
Method Detail
-
apply
public Quaternion apply(double t)
- Specified by:
apply
in interfacejava.util.function.DoubleFunction<Quaternion>
-
-