Struct LerpQuaternion
Linearly interpolate between two values a and b by ratio t.
Implements
IInterpolator<quaternion>
Inherited Members
Namespace: UnityEngine.Splines.Interpolators
Assembly: Unity.Splines.dll
Syntax
public struct LerpQuaternion : IInterpolator<quaternion>
Methods
Interpolate(quaternion, quaternion, float)
Linearly interpolates between a and b by t.
Declaration
public quaternion Interpolate(quaternion a, quaternion b, float t)
Parameters
Type | Name | Description |
---|---|---|
quaternion | a | Start value, returned when t = 0. |
quaternion | b | End value, returned when t = 1. |
float | t | Interpolation ratio. |
Returns
Type | Description |
---|---|
quaternion | The interpolated result between the two values. |