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

    Declaration

    Swift

    func meanLongitude(_ equinox: Equinox) -> Degree

    Parameters

    equinox

    The equinox for which the computation is made

    Return Value

    The longitude in degrees

  • semimajorAxis() Default implementation

    Computes 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 implementation

    Computes 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

    Declaration

    Swift

    func inclination(_ equinox: Equinox) -> Degree

    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.

    Declaration

    Swift

    func longitudeOfAscendingNode(_ equinox: Equinox) -> Degree

    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

    Declaration

    Swift

    func longitudeOfPerihelion(_ equinox: Equinox) -> Degree

    Parameters

    equinox

    The equinox for which the computation is made

    Return Value

    The longitude in degrees