Object

open class Object : ObjectBase

The base class of all objects (Planets, Sun, Moons etc.).

  • The Julian Day at which the object is considered.

    Declaration

    Swift

    public fileprivate(set) var julianDay: JulianDay { get }
  • The precision flag.

    Declaration

    Swift

    public fileprivate(set) var highPrecision: Bool { get }
  • A convenience accesor returning the name of the object class.

    Declaration

    Swift

    public var name: String { get }
  • Creates a new instance of the object.

    Declaration

    Swift

    public required init(julianDay: JulianDay, highPrecision: Bool = true)

    Parameters

    julianDay

    The julian day at which one will consider the object

    highPrecision

    A optional boolean indicating whether high precision (i.e. VSOP87 theory) must be used. Default is true.