Message-Id: <199702041509.KAA00551@delorie.com> From: MTEEL DOT DTECHS AT dtechs DOT com (Mark Teel) Date: Tue, 04 Feb 1997 09:06 EST To: owner-djgpp-list AT delorie DOT com Cc: djgpp AT delorie DOT com Subject: fwd: Re: ellipses at an angle ======== Original Message ======== On Sun, 2 Feb 1997 20:28:15 -0600 "Mark S. Teel" writes: >No! This is not even the definition of an ellipse parallel to a >coordinate >axis! Wasn't it Galileo who used ellipses like this to model the solar system? (Might of been Newton, I was sleeping through that part... the general equations and such get a lot more fun than a bunch of history :) >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 > Uhh.... Hello? Looks like you're spending a little too much time indoors, to do that math off the top of your head. The point is, shapes aren't mathematical equations - they're shapes. However, they CAN be modelled with math (by the way, it's easier {IMHO} to use (X+A)^2 (Y+B)^2 ------- + ------- = 1 C D ) The point is, computers don't run on equations - they run on algorithms. You can do all sorts of stuff with algorithms that you can't with equations - look at any word processor. Because of this, you can model shapes by their actual definitions, rather than their mathematical equations (for a hyperbola, the difference between the distances from the two foci equals 1 - for a parabola, etc etc)... ...Chabers ======== Fwd by: Mark Teel ======== The math was not off the top of my head - and WRT your diatribe on algorithms - I would assume you want your algorithms to be accurate, thus the equation. Shapes can sometimes be represented exactly by mathematical equations, and should be when possible. And I don't think Word Processors have bupkus to do with an ellipse. One should be rigorous when one can. Your first definition was inaccurate, period. (BTW, I make a living designing algorithms, math was just my first love). Peace, MST