Lines, Line Segments, and Rays

A line goes endlessly in both the directions.
 

1 rem1

A line segment is a part of a line that has 2 endpoints.

1 rem2

A ray is a part of a line that begins at a particular point and extends endlessly in one direction.
 

1 rem3