A line segment has two endpoints, whereas a ray has one endpoint and extends infinitely in the other direction, and a line extends infinitely in both directions.
4.5m questions
5.9m answers