clampIndex method

LinearLocation clampIndex(
  1. LinearLocation index
)

Computes a valid index for this line by clamping the given index to the valid range of index values

@return a valid index value

Implementation

LinearLocation clampIndex(LinearLocation index) {
  LinearLocation loc = index.copy();
  loc.clamp(linearGeom);
  return loc;
}