Description Usage Arguments Value Examples
Calculate location of a planet
Orbit.location
1 | Orbit.location(t, p.orb, a = 1, theta = 0, orig = c(0, 0), ab = 1)
|
t |
Time (day). |
p.orb |
Period of the orbit. |
a |
Radius or Semi-major of the orbit. |
theta |
angle in PCS. |
orig |
Reference orgin. |
ab |
Semi-major over semi-minor. ab=1 for a Ring. |
(x,y) in Cartesian Coordinate System.
1 2 3 4 5 | tday = seq(0, 365, 30)
x=Orbit.location(t=tday, p.orb = 365, a=10)
plot(PCS2CCS(0:360, a=10), type='l')
plotplanet(orig=x, rad = .51)
grid()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.