Dilating a segment and giving the coordinates of its endpoints