See section 12.7.3 for segments in the plane.
The segment command takes as arguments two points.
segment returns and draws the corresponding line segment.
Input:
Output: