Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equation of curve generated by QuadCurve2D in Java?

I have drawn a quadratic curve using the QuadCurve2d in java using start, end and one control points. Is there a way I can find out the equation of this curve? The reason why I need is that at some point of this curve it might intersect a circle and I want to know their point of intersection. So basically I want to solve two equations, but I dont know the equation of the curve generated by QuadCurve2D. Any help will be appreicated.

Regards S

like image 754
Shehroz Avatar asked Apr 06 '11 06:04

Shehroz


1 Answers

See the Javadoc for java.awt.geom.PathIterator, specifically the SEG_QUADTO field, in which the control equation in terms of the start, end and control points is given.

like image 133
lhballoti Avatar answered Sep 20 '22 06:09

lhballoti