getSegmentIndexFromStartPointIndex method

int getSegmentIndexFromStartPointIndex(
  1. int pointIndex
)

Converts from a point index to a segment index that uses the given point as a start point. If the point is not a start point, then -1 is returned.

Parameters:

  • pointIndex — Zero-based index of the point.

Return Value: The segment index containing the start point. If point is not a start point, then -1 is returned.

Implementation

int getSegmentIndexFromStartPointIndex(
  int pointIndex,
) {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MutablePart_getSegmentIndexFromStartPointIndex(
      _handle,
      pointIndex,
      errorHandler,
    );
  });
}