Method NextIndex
NextIndex<T>(T, int)
Gets the index of a knot that follows 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 NextIndex<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 | The knot index after |
Type Parameters
| Name | Description |
|---|---|
| T | A type that implements ISpline. |