Definition · applies to geometric figures · also called segment, $\overline{AB}$

Elementary

A line segment is the straight path between two points, called its endpoints. A line segment has a length, and it stops at both of its endpoints.

High school

Consider two different points $A$ and $B$. The line segment $\overline{AB}$ is the set of the points of the line through $A$ and $B$ that lie between $A$ and $B$, together with $A$ and $B$.

The line segment $\overline{AB}$.

Undergraduate

Consider two points $\vect{a}$ and $\vect{b}$ in $\reals^n$. The line segment from $\vect{a}$ to $\vect{b}$ is the set

\[\setdef{(1 - t) \vect{a} + t \vect{b} \suchthat 0 \leq t \leq 1}.\]

Examples

Examples

  • ✓ A side of a triangle Elementary
    A side of a triangle is a line segment, because the side is straight and stops at two corners of the triangle, which are its endpoints.

Properties

  • The length of the line segment $\overline{AB}$ is the distance between $A$ and $B$.
  • The line segment $\overline{AB}$ is the shortest path from $A$ to $B$ in the plane.
  • A set is convex exactly when the set contains the line segment between each pair of its points.

All definitions · All distinctions · All examples · Notation