A Bezier curve is a parametric function. A quadratic Bezier curve (i.e. three control points) can be expressed as: F(t) = A(1 - t)^2 + 2B(1 - t)t + Ct^2 where A, B and C are points and t goes from zero to one.
This will give you two equations:
x = a(1 - t)^2 + 2b(1 - t)t + ct^2
y = d(1 - t)^2 + 2e(1 - t)t + ft^2
If you add for instance the line equation (y = kx + m) to that, you'll end up with three equations and three unknowns (x, y and t).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…