Mail Archives: djgpp/1997/02/02/21:39:58
>that: picture an ellipse leaning against a wall, what algorithm would
>I
>use to draw that?
>
>Shawn Betts
>
:Well, you could use the original definition of an ellipse (that is, from
:any point on the ellipse, the sum of the distances from that point to the
:two foci equals 1). The math gets a little messy though.
No! This is not even the definition of an ellipse parallel to a coordinate
axis!
The general equation for an ellipse is:
Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0, B^2 - 4*A*C < 0.
If B == 0, then this reduces to an ellipse parallel to a coordinate axis.
MST
- Raw text -