Polyline.extended

Polyline.extended(length)[source]

Returns a copy of this polyline extended by a given length.

length: float or tuple[float, float]

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

Returns

Polyline