Reputation: 61
How can I rotate a set of images in an ellipse without using jquery? how to get each point on a ellipse at some center(x,y)point
Upvotes: 0
Views: 268
Reputation:
The coordinates of any point on an ellipse which center is (x,y) are (x + a cos(c), y + b sin(c) ) with a and b defining the size of the ellipse, and c defining the angle in [0,2pi].
For n images, the angles will be of the form (2pi/n)i + delta, with i in [0,n] and delta the movement from the original position, which you will use for the animation.
Upvotes: 1