Class InterpolatorUtility
InterpolatorUtility provides easy access to all the different IInterpolator implementations.
Inherited Members
Namespace: UnityEngine.Splines
Syntax
public static class InterpolatorUtility
Properties
LerpColor
Linearly interpolate between two values a and b by ratio t.
Declaration
public static IInterpolator<Color> LerpColor { get; }
Property Value
Type | Description |
---|---|
IInterpolator<Color> |
LerpFloat
Linearly interpolate between two values a and b by ratio t.
Declaration
public static IInterpolator<float> LerpFloat { get; }
Property Value
Type | Description |
---|---|
IInterpolator<Single> |
LerpFloat2
Linearly interpolate between two values a and b by ratio t.
Declaration
public static IInterpolator<float2> LerpFloat2 { get; }
Property Value
Type | Description |
---|---|
IInterpolator<float2> |
LerpFloat3
Linearly interpolate between two values a and b by ratio t.
Declaration
public static IInterpolator<float3> LerpFloat3 { get; }
Property Value
Type | Description |
---|---|
IInterpolator<float3> |
LerpFloat4
Linearly interpolate between two values a and b by ratio t.
Declaration
public static IInterpolator<float4> LerpFloat4 { get; }
Property Value
Type | Description |
---|---|
IInterpolator<float4> |
LerpQuaternion
Linearly interpolate between two values a and b by ratio t.
Declaration
public static IInterpolator<quaternion> LerpQuaternion { get; }
Property Value
Type | Description |
---|---|
IInterpolator<quaternion> |
SlerpFloat2
Spherically interpolate between two values a and b by ratio t.
Declaration
public static IInterpolator<float2> SlerpFloat2 { get; }
Property Value
Type | Description |
---|---|
IInterpolator<float2> |
SlerpFloat3
Spherically interpolate between two values a and b by ratio t.
Declaration
public static IInterpolator<float3> SlerpFloat3 { get; }
Property Value
Type | Description |
---|---|
IInterpolator<float3> |
SlerpQuaternion
Spherically interpolates between quaternions a and b by ratio t. The parameter t is clamped b the range [0, 1].
Declaration
public static IInterpolator<quaternion> SlerpQuaternion { get; }
Property Value
Type | Description |
---|---|
IInterpolator<quaternion> |
SmoothStepFloat
Interpolate between two values a and b by ratio t with smoothing at the start and end.
Declaration
public static IInterpolator<float> SmoothStepFloat { get; }
Property Value
Type | Description |
---|---|
IInterpolator<Single> |
SmoothStepFloat2
Interpolate between two values a and b by ratio t with smoothing at the start and end.
Declaration
public static IInterpolator<float2> SmoothStepFloat2 { get; }
Property Value
Type | Description |
---|---|
IInterpolator<float2> |
SmoothStepFloat3
Interpolate between two values a and b by ratio t with smoothing at the start and end.
Declaration
public static IInterpolator<float3> SmoothStepFloat3 { get; }
Property Value
Type | Description |
---|---|
IInterpolator<float3> |
SmoothStepFloat4
Interpolate between two values a and b by ratio t with smoothing at the start and end.
Declaration
public static IInterpolator<float4> SmoothStepFloat4 { get; }
Property Value
Type | Description |
---|---|
IInterpolator<float4> |