MyLine for intersection with lines in 2D