getEndPointIndexFromSegmentIndex method

int getEndPointIndexFromSegmentIndex(
  1. {required int segmentIndex}
)

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

Parameters:

  • segmentIndex — Zero-based index of the segment.

Return Value: A point index

Implementation

int getEndPointIndexFromSegmentIndex({required int segmentIndex}) {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ImmutablePart_getEndPointIndexFromSegmentIndex(
        _handle, segmentIndex, errorHandler);
  });
}