find a line based on two points