I want to calculate the intersection points of two curves arcs described by mathematical ellipses. Ellipses are based on fitted points 1 and described with:
vertex (main-axis), theta (angle of rotation) , a (y-scale factor)
How can I calculate the intersection of the eclipse parts? Implementation will be done in Matlab and C++.
Based on Source 1, the ellipse is calculated as following in matlab:
//Calculates ellipse based on provided xy data [vertex,theta,a] = myfit(xdata,ydata);
plot(xdata,ydata,'k.','linewidth', 3);
hold on
drawParabola([vertex(1) vertex(2) a -theta],'Color', colorstring(i), 'linewidth', 1)
The Source Code can be found here: Dropbox Matlab Files