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