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
azimuthThe azimuth value.
altitudeThe altitude value
geographicCoordinatesThe 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
julianDayThe julian day at which the coordinates are returned.
epochThe 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) -> DegreeParameters
otherCoordinatesThe other coordinates to consider.
Return Value
A angle value, between the two coordinates.
-
Declaration
Swift
public var description: String { get }
View on GitHub
Install in Dash
HorizontalCoordinates Structure Reference