segmentEndVertexIndex static method

int segmentEndVertexIndex(
  1. LinearLocation loc
)

Implementation

static int segmentEndVertexIndex(LinearLocation loc) {
  if (loc.getSegmentFraction() > 0.0) return loc.getSegmentIndex() + 1;
  return loc.getSegmentIndex();
}