Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Dividing an ellipse into equal parts
Replies: 9   Last Post: Mar 6, 2006 7:40 AM

 Messages: [ Previous | Next ]
 Roy Stogner Posts: 213 Registered: 12/6/04
Re: Dividing an ellipse into equal parts
Posted: Mar 2, 2006 7:49 PM

On Thu, 02 Mar 2006 14:25:29 -0800, tallsteve wrote:

> I'm trying to move items around an ellipse as part of an animation. If
> I move round the ellipse in constant angular movements from the centre,
> then the item moves faster when near to the centre of the ellipse and
> slower round the ends.
>
> (If my ellipse is 2w wide and 2h high, and the angle from the centre is
> a, then I get the co-ordinates by x = w sin a and y = h cos a).

If this is just for an animation, you'll probably be happy with an
approximate solution, which you can get with calculus.

You want sqrt(dx^2 + dy^2) to be a constant C. Taking derivatives,
dx = w cos a da
dy = -h sin a da
C^2 = dx^2 + dy^2 = (w^2 cos^2 a + h^2 sin^2 a) da^2

da = sqrt(C^2 / (w^2 cos^2 a + h^2 sin^2 a))

So plug in C, w, h, and a, and you'll get approximately the amount by
which you should increment a to move a distance C around the circumference.

If you're animating infrequently but need more accuracy, then separate
each animation step into multiple approximation steps - if the error you
get using 30 steps is too high, for example, you can get about 1% of that
error by taking 300 steps and only plotting every tenth.
---
Roy Stogner

Date Subject Author
3/2/06 tallsteve
3/2/06 Julian V. Noble
3/3/06 tallsteve
3/3/06 Martin Brown
3/3/06 tallsteve
3/3/06 Peter Spellucci
3/5/06 David W. Cantrell
3/6/06 tallsteve
3/2/06 Roy Stogner
3/6/06 tallsteve