PDA

View Full Version : find center / noob question



not_yet
04-13-2004, 04:23 PM
hi all,

noob here

lets say you have a planet in orbit

is there a way to get the coordinates of the center of the planet as its rotating?

thanks :)

chowe6685
04-13-2004, 05:02 PM
yes
if it is rotating in a simple circle then
X = r * cos (theta)
Y= r*sin(theta)
if it is rotating in an arbitrarily located ellipse things get a bit trickier, but not much. In this case define vectors a and b to be the major and minor axis. Then p = a cos (theta) + b sin(theta)