Terrace.FindInsertionPos

Determines the array index in which to insert the control point into the internal control point array.

@param value The value of the control point.

@returns The array index in which to insert the control point.

@pre No two control points have the same value.

@throw new ExceptionInvalidParam An invalid parameter was specified; see the preconditions for more information.

By inserting the control point at the returned array index, this class ensures that the control point array is sorted by value. The code that maps a value onto the curve requires a sorted control point array.

class Terrace
protected
int
FindInsertionPos
(
double value
)

Meta