Interpolates between two quaternions, using spherical linear interpolation.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 8.0
Syntax public static Quaternion Slerp(
Quaternion a,
Quaternion b,
double t
)
Public Shared Function Slerp (
a As Quaternion,
b As Quaternion,
t As Double
) As Quaternion
Parameters
- a
- Type: Rhino.GeometryQuaternion
The first quaternion. - b
- Type: Rhino.GeometryQuaternion
The second quaternion. - t
- Type: SystemDouble
The parameter in the range [0, 1].
Return Value
Type:
QuaternionThe interpolated quaternion.
See Also