A line is a straight path on a plane that extends forever in both directions with no endpoints. A line segment is part of a line that has two endpoints and is finite in length. A ray is a line segment that extends indefinitely in one direction.
Lines line segments rays
Geometry
![School hallway](https://d33wubrfki0l68.cloudfront.net/6bc16815f3b6b95be40bd186397ba9d99f398eab/340ce/static/9602125ac3db6f79a12bb0dbe1da0611/9c012/cta-background.jpg)