A horizontal line with points marked, left to right, as A, D, C, B.

If each point in the diagram can act as an endpoint, how many distinct line segments can be formed using the set of points?