Segment typedef
A segment is a finite portion of a line between two endpoints.
This is an alias for Line, which represents a line segment (not an infinite line). Use whichever name fits your domain:
Linefor general useSegmentwhen you want to emphasize finiteness
Implementation
typedef Segment = Line;