Three points lie on the same straight line. If each point can act as an endpoint, how many distinct line segments can be formed using the set of points?