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

Description Usage Arguments Value Examples

View source: R/Whereisit.R

Description

Calculate location of a planet Orbit.location

Usage

1
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

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()

happynotes/RoundAndRound documentation built on Jan. 31, 2020, 12:05 p.m.