I wonder how can I draw elliptical orbit by using the equation ay2 + bxy + cx + dy + e = x2 ?
I have first determined the a,b,c,d,e constants a
The easiest thing to do is rewrite in parametric form so that you end up with the expressions x = A cos(t)
; y = B sin(t)
. You then create a full ellipse by assigning t = [0, 2 * pi]
and calculating the corresponding x
and y
.
Read this article which explains how to move from a general quadratic form into a parametric form.