Segment

class Segment

In the following constructors, additional keyword arguments can be provided to set properties of the new Segment.

Segment(p1, p2)

Construct the line segment from the point p1 to the point p2.

property length

(Get-only) The length of the Segment, i.e., the distance between the two points defining it.

A Segment also has the following common properties: