ActionScript 3 Trig Equations to create Ellipse
问题 I am working with this function that moves an object around a center point in a perfect circle and am trying to modify it to move it in an oval shape that is 1/2 as high as it is wide? Basically, I have a set speed var myVelocity:Number = 0.25; then I calculate my Sine and Cosine based on the speed var myCos:Number = Math.cos(myVelocity); var mySin:Number = Math.sin(myVelocity); then I figure the distance of the the object from a fixed center points along each axis and var x1:Number = myBall