Method GetNormalizedInterpolation
GetNormalizedInterpolation<TSplineType>(TSplineType, float)
Given a time value using a certain PathIndexUnit type, calculate the normalized time value regarding a specific spline.
Declaration
public float GetNormalizedInterpolation<TSplineType>(TSplineType spline, float t) where TSplineType : ISpline
Parameters
Type | Name | Description |
---|---|---|
TSplineType | spline | The Spline to use for the conversion, this is necessary to compute Normalized and Distance PathIndexUnits. |
float | t | The time to normalize in the original PathIndexUnit. |
Returns
Type | Description |
---|---|
float | The normalized time. |
Type Parameters
Name | Description |
---|---|
TSplineType | The Spline type. |