public class Slerp extends Object implements DoubleFunction<Quaternion>
| Constructor and Description |
|---|
Slerp(Quaternion start,
Quaternion end) |
public Slerp(Quaternion start, Quaternion end)
start - Start of the interpolation.end - End of the interpolation.public Quaternion apply(double t)
t.
All other values are interpolated (or extrapolated if t is outside of the
[0, 1] range). The returned quaternion is in positive polar form, meaning that it
is a unit quaternion with a positive scalar component.apply in interface DoubleFunction<Quaternion>t - Interpolation control parameter.
When t = 0, a rotation equal to the start instance is returned.
When t = 1, a rotation equal to the end instance is returned.Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.