While two points define the ends of the line segment, the part of the line within the line segment is made up of a collection of points. Since rational numbers can be infinitely small, there are an infinite number of points on any given line segment.