This one also only works for straight lines.