HorizontalCoordinates
public struct HorizontalCoordinates : CustomStringConvertible
The coordinates of an object as seen from an observer location on Earth.
-
The azimuth, westward from the South see AA. p91
Declaration
Swift
public let azimuth: Degree
-
The altitude
Declaration
Swift
public let altitude: Degree
-
The location on Earth
Declaration
Swift
public let geographicCoordinates: GeographicCoordinates
-
The julian day
Declaration
Swift
public let julianDay: JulianDay
-
The azimuth angle, starting from the North.
Declaration
Swift
public var northBasedAzimuth: Degree { get }
-
Creates a new HorizontalCoordinates instance.
Declaration
Swift
public init(azimuth: Degree, altitude: Degree, geographicCoordinates: GeographicCoordinates, julianDay: JulianDay)
Parameters
azimuth
The azimuth value.
altitude
The altitude value
geographicCoordinates
The location on Earth.
-
Returns the equivalent Equatorial coordinates for the given Julian Day.
Declaration
Swift
public func makeEquatorialCoordinates(julianDay: JulianDay, epoch: Epoch = .J2000) -> EquatorialCoordinates?
Parameters
julianDay
The julian day at which the coordinates are returned.
epoch
The optional epoch value, default to J2000.0
Return Value
A new EquatorialCoordinates object.
-
Returns the angular separation between two horizontal coordinates.
Declaration
Swift
public func angularSeparation(with otherCoordinates: HorizontalCoordinates) -> Degree
Parameters
otherCoordinates
The other coordinates to consider.
Return Value
A angle value, between the two coordinates.
-
Declaration
Swift
public var description: String { get }