getStartPointIndexFromSegmentIndex method

int getStartPointIndexFromSegmentIndex(
  1. int segmentIndex
)

For a segment at a specified segment_index the method returns the point index of the segment's start point.

Parameters:

  • segmentIndex — Zero-based index of the segment.

Return Value: A point index

Implementation

int getStartPointIndexFromSegmentIndex(
  int segmentIndex,
) {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MutablePart_getStartPointIndexFromSegmentIndex(
      _handle,
      segmentIndex,
      errorHandler,
    );
  });
}