I need to find a point where a line (its origin is ellipse’ center) intersects an ellipse in 2D… I can easily find a point on a circle, because I know an angle F and the circle’ radius (R):
x = x0 + R * cosF
y = y0 + R * sinF
However I just can’t figure how am I supposed to deal with an ellipse… I know it’s dimensions (A & B), but what is the way of finding parameter T?!
x = x0 + A * cosT
y = y0 + B * sinT
From what I understand the parameter T (T angle) is not far from the F angle (approximately +-15 degrees in some cases), but I just can’t figure how to calculate it!!!
If there is a kind hearted soul, please help me with this problem…
The standard equation of an ellipse, stationed at 0,0, is:
Where a is 1/2 the diameter on the horizontal axis, and b is 1/2 the diameter on the vertical axis.
you have a line, assuming an equation:
So, let us plug-and-play!
That last equation follows the form of a standard quadratic equation.
So just use the quadratic formula, with:
to get the X values at the intersections; Then, plug in those values into your original line equation to get the Y values.
Good luck!