In the simple case where the ellipse is centered at the origin, and the major and minor axes are parallel to the x and y axis respectively, then the ellipse can be parameterized by the equations x = a cos(t)
and y = b sin(t)
, where a
and b
are the major and minor axes, and t
is the angle which varies from 0 to 2pi. So in this case, to answer your question, the radius at angle t is
r = sqrt( x^2 + y^2 ) = sqrt( a^2 cos^2(t) + b^2 sin^2(t) )
Now, this can be made more complicated in the following ways
(i) The ellipse is not centered at (0,0)
(ii) The major and minor axes are not parallel to the x and y axes, say because the major axis forms an angle t0 from the positive x axis.
(iii) a combination of (i) and (ii).
However, the solution above can also be applied to these cases with the right modifications. For (i), subtract the center from x and y in the equation above to obtain the radius from the center point. For (ii), the equation above will hold for variables x',y', where (x',y')^T = R(t0) (x,y)^T where R(t0) is the rotation matrix which orients the ellipse properly. So form the equation above for x' and y', then substitute the expressions for x and y by solving the matrix equation above.