Planet

The Planet class encompasses all the shared properties of the planets, to be understood as “non-Earth” and “non-dwarf” planets.

  • Convenience accesor for the average color of the planet, making it easier to draw a solar system. :-)

    Declaration

    Swift

    public class var averageColor: Color { get }
  • Accessor to all values of the underlying elliptical planetary details. Will probably become private once all relevant accessors are implemented and covered.

    Declaration

    Swift

    public lazy var planetaryDetails: KPCAAEllipticalPlanetaryDetails { get set }
  • Accessor to all values of the underlying object details. Will probably become private once all relevant accessors are implemented and covered.

    Declaration

    Swift

    public lazy var ellipticalObjectDetails: KPCAAEllipticalObjectDetails { get set }
  • The coordinates of the object in the equatorial system (based on Earth equator), with the Earth’s center as its origin.

    Declaration

    Swift

    public var equatorialCoordinates: EquatorialCoordinates { get }
  • The heliocentric coordinates of the planet in the ecliptic system (based on planet orbits plane). That is, its apparent position on the celestial sphere, as as it would be seen by an observer at rest at the barycenter of the solar system, and referred to the instantaneous equator, ecliptic and equinox. It accounts for 1) the effect of light-time and 2) the effect of the Earth motion. See AA p224.

    Declaration

    Swift

    public var heliocentricEclipticCoordinates: EclipticCoordinates { get }
  • The radius vector of the planet (that is, its distance to the Sun).

    Declaration

    Swift

    public var radiusVector: AstronomicalUnit { get }
  • the standard altitude of the planet, that is, the geometric altitude of the center of the body at the time of apparent rising or setting. There is a value for the stars and planets, and one for the Sun. See AA p.101 for more explanations

    Declaration

    Swift

    public static let apparentRiseSetAltitude: Degree