Method SplineToCurveT
SplineToCurveT<T>(T, float, out float)
Given a normalized interpolation (t) for a spline, calculate the curve index and curve-relative normalized interpolation.
Declaration
public static int SplineToCurveT<T>(this T spline, float splineT, out float curveT) where T : ISpline
Parameters
Type | Name | Description |
---|---|---|
T | spline | The target spline. |
float | splineT | A normalized spline interpolation value to be converted into curve space. |
float | curveT | A normalized curve interpolation value. |
Returns
Type | Description |
---|---|
int | The curve index. |
Type Parameters
Name | Description |
---|---|
T | A type implementing ISpline. |