operate on infinite lines in 2d space