Segment

Constructs a segment.

Syntax

segment(Point, Point)

segment(Point, Vector)

segment(Triangle, Integer)

 Polygonal, Integer)

segment(Point)

segment(Vector)

segment(Line)


Description

Given two points $A$ and $B$, constructs the segment $\overline{AB}$.

Given a point $A$ and a vector $v$, constructs the segment $\overline{AB}$, where $B=A+v$.

Following the usual notation for a triangle: vertices ${A}_{1}$, ${A}_{2}$ and ${A}_{3}$ and sides ${a}_{1}$, ${a}_{2}$ and ${a}_{3}$; given an integer $i$, this function returns the segment ${a}_{i}$.

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

Given a point $P$, constructs the segment $\overline{OP}$.

Given a vector $v$, constructs the segment $\overline{OP}$, where $P=O+v$

Returns a segment that belongs to the given line.