Method GetCurveInterpolation
GetCurveInterpolation(int, float)
Return the normalized interpolation (t) corresponding to a distance on a BezierCurve.
Declaration
public float GetCurveInterpolation(int curveIndex, float curveDistance)
Parameters
| Type | Name | Description |
|---|---|---|
| int | curveIndex | The zero-based index of the curve. |
| float | curveDistance | The curve-relative distance to convert to an interpolation ratio (also referred to as 't'). |
Returns
| Type | Description |
|---|---|
| float | The normalized interpolation ratio associated to distance on the designated curve. |