Method CurveToSplineT
CurveToSplineT<T>(T, float)
Given an interpolation value for a curve, calculate the relative normalized spline interpolation.
Declaration
public static float CurveToSplineT<T>(this T spline, float curve) where T : ISpline
Parameters
Type | Name | Description |
---|---|---|
T | spline | The target spline. |
float | curve | A curve index and normalized interpolation. The curve index is represented by the integer part of the float, and interpolation is the fractional part. This is the format used by Knot. |
Returns
Type | Description |
---|---|
float | An interpolation value relative to normalized Spline length (0 to 1). |
Type Parameters
Name | Description |
---|---|
T | A type implementing ISpline. |