PolySegment#

class PolySegment(points)#

Bases: object

A polyline segment defined by a list of complex points.

__init__(points)#

Methods

__init__(points)

length()

Total length of the polyline.

sample(n)

Sample n points along the polyline at (approximately) equal arc-length spacing, including endpoints.

length()#

Total length of the polyline.

sample(n)#

Sample n points along the polyline at (approximately) equal arc-length spacing, including endpoints.