Method PreviousIndex
PreviousIndex<T>(T, int)
Gets the index of a knot that precedes a spline index. This method uses the Count and Closed properties to ensure that it returns the correct index of the knot.
Declaration
public static int PreviousIndex<T>(this T spline, int index) where T : ISpline
Parameters
Type | Name | Description |
---|---|---|
T | spline | The spline to consider. |
int | index | The current index to consider. |
Returns
Type | Description |
---|---|
int | Returns a knot index that precedes the |
Type Parameters
Name | Description |
---|---|
T | A type that implements ISpline. |