Segment

Constructs a segment.

 segment(Point, Point) segment(Point, Vector) segment(Triangle, Integer) segment(Polygon | Polygonal, Integer) segment(Point) segment(Vector) segment(Line)

segment(Point, Point)

Given two points and , constructs the segment .

segment(Point, Vector)

Given a point and a vector , constructs the segment , where .

segment(Triangle, Integer)

Following the usual notation for a triangle: vertices , and and sides , and ; given an integer , this function returns the segment .

segment(Polygon | Polygonal, Integer)

Given a polygon or polygonal and an integer , returns the -th side of .

segment(Point)

Given a point , constructs the segment .

segment(Vector)

Given a vector , constructs the segment , where

segment(Line)

Returns a segment that belongs to the given line.