PlanetaryBase
public protocol PlanetaryBase : ObjectBase
The PlanetaryBase extends the simple ObjectBase protocol to provide specific accesors for solar-system planets.
-
planet
Default 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 }
-
planetStrict
Default 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 }
-
planetaryObject
Default 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 }
-
ellipticalObject
Default 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 }
-
perihelion
Default 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 }
-
aphelion
Default 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 }
-
radiusVector
Default implementationThe distance to the Sun.
Default Implementation
The distance to the Sun.
Declaration
Swift
var radiusVector: AstronomicalUnit { get }