PlanetaryBase
public protocol PlanetaryBase : ObjectBase
The PlanetaryBase extends the simple ObjectBase protocol to provide specific accesors for solar-system planets.
-
planetDefault implementationThe index of the planet in the historical list of all 9 planets: from Mercury to Pluto, including the Earth.
Default Implementation
The index of the planet in the historical list of all 9 planets: from Mercury to Pluto, including the Earth.
Declaration
Swift
var planet: KPCAAPlanet { get } -
planetStrictDefault implementationThe index of the planet in the official list of 8 planets, that is, not accounting the dwarf planet, Pluto.
Default Implementation
The index of the planet in the official list of 8 planets, that is, not accounting the dwarf planet, Pluto.
Declaration
Swift
var planetStrict: KPCAAPlanetStrict { get } -
planetaryObjectDefault implementationThe index of the planet in the list of all planets, but the Earth and Pluto.
Default Implementation
The index of the planet in the list of all planets, but the Earth.
Declaration
Swift
var planetaryObject: KPCPlanetaryObject { get } -
ellipticalObjectDefault implementationThe index of the planet in the list of all elliptical objects, that is the Sun, all Planets but Earth, and including Pluto.
Default Implementation
The index of the planet in the list of all elliptical objects, that is all Planets but Earth, but including Pluto.
Declaration
Swift
var ellipticalObject: KPCAAEllipticalObject { get } -
perihelionDefault implementationThe julian day of the perihelion of the planet the after the given julian day of the object.
Default Implementation
The julian day of the perihelion of the planet the after the given julian day of the object.
Declaration
Swift
var perihelion: JulianDay { get } -
aphelionDefault implementationThe julian day of the aphelion of the planet the after the given julian day of the object.
Default Implementation
The julian day of the aphelion of the planet the after the given julian day of the object.
Declaration
Swift
var aphelion: JulianDay { get } -
radiusVectorDefault implementationThe distance to the Sun.
Default Implementation
The distance to the Sun.
Declaration
Swift
var radiusVector: AstronomicalUnit { get }
View on GitHub
Install in Dash
PlanetaryBase Protocol Reference