Method GetCurveInterpolation
GetCurveInterpolation(int, float)
Returns the interpolation ratio (0 to 1) that corresponds to a distance on a BezierCurve. The distance is relative to the curve.
Declaration
public float GetCurveInterpolation(int curveIndex, float curveDistance)
Parameters
| Type | Name | Description |
|---|---|---|
| int | curveIndex | The zero-based index of the curve. |
| float | curveDistance | The distance measured from the knot at curveIndex to convert to a normalized interpolation ratio. |
Returns
| Type | Description |
|---|---|
| float | The normalized interpolation ratio that matches the distance on the designated curve. |