|
|
On Tue, 19 Jan 1999 21:04:09 -0000, Andrew Cocker
<and### [at] acockerfreeservecouk> wrote:
>Hi all,
>
>This is probably such an elementary question, but how do I rotate an object in an
ellipse?
>
>translate x*10
>rotate y*clock*360
>
>is all I've done before.
>
>That's it. Any help gratefully received,
Aren't all mathematicians useless? :)
You're almost there. All you need to do now is
scale x*2
where 2 is the ratio of major axis to minor axis of your
ellipse. If you're wanting to do a simulation of Kepler's
Laws, though, you'll need something better because this
locates the center of the ellipse at the origin, and you
probably want one of the foci at the origin. Also, the
velocity will be neither constant nor physically correct.
Post a reply to this message
|
|