The middle of a line segment is called the midpoint.

Point C is the midpoint of segment AB. Segment AC is equal in length to segment CB.

Because lines and rays are infinitely long, they do not have midpoints!