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