getSegmentIndexFromEndPointIndex method
- int pointIndex
Converts from a point index to a segment index that uses the given point as an end point. If the point is not an end point, then -1 is returned.
Parameters:
pointIndex
— Zero-based index of the point.
Return Value: The segment index containing the end point or max size_t if the segment is not found.
Implementation
int getSegmentIndexFromEndPointIndex(
int pointIndex,
) {
return _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_MutablePart_getSegmentIndexFromEndPointIndex(
_handle,
pointIndex,
errorHandler,
);
});
}