At the intersection, the equations of two curves or straight lines can be simultaneous.
Distance formula from point to straight line, d = | ax0+by0+c |/√ (a? +b? )。 Point D(x0, y0), straight line l: ax+by+c = 0.