Modify a formula from calculating around a circle to around an oval?
问题 I have this formula in a function below. It's a fairly simple concept, yet this formula took me almost 2 weeks to get perfect. What it does is calculates what point to place an object at a given degree around and distance from a central point. It's useful for manually drawing circles, and also I primarily use it for a needle gauge component of mine. It calculates where to draw the needle. Now I'm trying to figure out how to modify this formula to take ovals or ellipses into account. I did