A ray is similar to a line because a line is a straight set of points that extend in opposite directions without ending. A ray is a part of a line that has one endpoint and extends in one direction without ending.