computes a valid index for this line by clamping the given index to the valid range of index values concode_field_sep Geometry linearGeom concode_field_sep double getStartIndex concode_elem_sep double getEndIndex concode_elem_sep Geometry extractLine concode_elem_sep double project concode_elem_sep LinearLocation locationOf concode_elem_sep LinearLocation locationOf concode_elem_sep double positiveIndex concode_elem_sep Coordinate extractPoint concode_elem_sep Coordinate extractPoint concode_elem_sep double indexOf concode_elem_sep boolean isValidIndex concode_elem_sep double indexOfAfter concode_elem_sep double[] indicesOf
double function ( double arg0 ) { double loc0 = positiveIndex ( arg0 ) ; double loc1 = getStartIndex ( ) ; if ( loc0 < loc1 ) return loc1 ; double loc2 = getEndIndex ( ) ; if ( loc0 > loc2 ) return loc2 ; return loc0 ; }