PlanetaryOrbits
public protocol PlanetaryOrbits : PlanetaryBase
This protocol encompasses various elements of planetary orbits.
-
meanLongitude(_:
Default implementation) Computes the mean longitude of the orbit
Default Implementation
Computes the mean longitude of the orbit
Parameters
equinox
The equinox for which the computation is made
Return Value
The longitude in degrees
-
semimajorAxis()
Default implementationComputes the semi major axis of the orbit
Default Implementation
Computes the semi major axis of the orbit
Declaration
Swift
func semimajorAxis() -> AstronomicalUnit
Return Value
The semi major axis in astronomical units
-
eccentricity()
Default implementationComputes the eccentricity of the orbit
Default Implementation
Computes the eccentricity of the orbit
Declaration
Swift
func eccentricity() -> Double
Return Value
The eccentricity (comprise between 0==circular, and 1).
-
inclination(_:
Default implementation) Computes the inclination of the planet on the plane of the ecliptic
Default Implementation
Computes the inclination of the planet on the plane of the ecliptic
Parameters
equinox
The equinox for which the computation is made
Return Value
The inclination in degrees
-
longitudeOfAscendingNode(_:
Default implementation) Computes the longitude of the ascending node.
Default Implementation
Computes the longitude of the ascending node.
Parameters
equinox
The equinox for which the computation is made
Return Value
The longitude in degrees
-
longitudeOfPerihelion(_:
Default implementation) Compute the longitude of the perihelion
Default Implementation
Compute the longitude of the perihelion
Parameters
equinox
The equinox for which the computation is made
Return Value
The longitude in degrees