Cutting the two ends of a finite polygonal route #
Route.cutEnds moves the two listed endpoints into their original end segments and leaves
all internal listed points unchanged. The two cuts are independent, including when the
route has a single segment. The real local parameters are tracked explicitly, so support
containment and simplicity refer to every real point of every segment.
The sum of the two cut parameters must be less than one. This suffices even for a single-segment open edge; no artificial bend or degenerate segment is introduced.
Cut the initial and final outgoing segments by parameters s and t. Internal
points and their order are unchanged. Zero cuts are permitted.
Instances For
If a retained point was at an old route end, it is at the same end of the cut route. The converse need not hold: a positive cut creates a new end in an old segment interior.