a portion of a line that has two endpoints​