static Point intersectLineLine(Line a, Line b) { var x = (a.intercept - b.intercept) / (b.slope - a.slope); var y = a.slope * x + a.intercept; return Point(x, y); }