A segment (or line segment) is a part of a line between two endpoints along the line. A line segment is named by the endpoints.