ObjectBase
public protocol ObjectBase
Base protocol used by all types of astronomical objects considered in SwiftAA, planets, moons, the Earth, the Sun etc.
-
The julian day at which one considers the object.
Declaration
Swift
var julianDay: JulianDay { get }
-
A boolean indicating whether high precision (i.e. VSOP87 theory) must be used.
Declaration
Swift
var highPrecision: Bool { get }
-
The object name
Declaration
Swift
var name: String { get }
-
Creates an object instance
Declaration
Swift
init(julianDay: JulianDay, highPrecision: Bool)
Parameters
julianDay
The julian day at which one will consider the object
highPrecision
If true (default), the VSOP87 theory is used when relevant to increase precision significantly. Is probably computationally slower compared to low-precision algorithms.