UxrInterpolator.Interpolate Method (Quaternion, Quaternion, Single, UxrEasing)

Spherically interpolates (SLERP) between two quaternions using a t between range [0.0, 1.0] and a given easing.

Namespace: UltimateXR.Animation.Interpolation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Quaternion Interpolate(
	Quaternion a,
	Quaternion b,
	float t,
	UxrEasing easing
)

Parameters

 

a
Type: Quaternion
Start value
b
Type: Quaternion
End value
t
Type: System.Single
Interpolation factor
easing
Type: UltimateXR.Animation.Interpolation.UxrEasing
Easing

Return Value

Type: Quaternion
Interpolated value

See Also

Reference

UxrInterpolator Class
Interpolate Overload
UltimateXR.Animation.Interpolation Namespace