part of a line with two endpoints is a​