UxrInterpolator.Interpolate Method (Quaternion, Quaternion, Single, UxrInterpolationSettings)
Interpolates between two Quaternion values. The interpolation uses SLERP.
Namespace: UltimateXR.Animation.Interpolation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Quaternion Interpolate(
Quaternion startValue,
Quaternion endValue,
float time,
UxrInterpolationSettings settings
)
Parameters
- startValue
- Type: Quaternion
The start value - endValue
- Type: Quaternion
The end value - time
- Type: System.Single
The time value - settings
- Type: UltimateXR.Animation.Interpolation.UxrInterpolationSettings
Interpolation settings to use
Return Value
Type: Quaternion
Interpolated Quaternion value
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | When settings is null. |
See Also
Reference
UxrInterpolator Class
Interpolate Overload
UltimateXR.Animation.Interpolation Namespace