Polyline.shorten

Polyline.shorten(length)[source]

Shortens a polyline by a given length.

Parameters:
length: float or tuple[float, float]

A single length value to shorten the polyline only at the end, or two length values to shorten at both ends.

Returns:
None