Learn R Programming

RoundAndRound (version 0.0.1)

Orbit.location: Calculate location of a planet Orbit.location

Description

Calculate location of a planet Orbit.location

Usage

Orbit.location(t, p.orb, a = 1, theta = 0, orig = c(0, 0), ab = 1)

Arguments

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.

Value

(x,y) in Cartesian Coordinate System.

Examples

Run this code
# NOT RUN {
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()
# }

Run the code above in your browser using DataLab