GalacticCoordinates
public struct GalacticCoordinates : CustomStringConvertible
The coordinates of an object in the Milky Way galactic system.
-
The galactic longitude
Declaration
Swift
public let galacticLongitude: Degree
-
The galactic latitude
Declaration
Swift
public let galacticLatitude: Degree
-
The epoch of the coordinates
Declaration
Swift
public let epoch: Epoch
-
The reference equinox.
Declaration
Swift
public let equinox: Equinox
-
A convenience accessor for the galactic longitude
Declaration
Swift
public var l: Degree { get }
-
A convenience accessor for the galactic latitude
Declaration
Swift
public var b: Degree { get }
-
Creates a new GalacticCoordinates instance.
Declaration
Parameters
galacticLongitude
The galactic longitude
galacticLatitude
The galactic latitude
epoch
The epoch of coordinates. Default is B1950.0
equinox
The optional equinox, default to standard equinox J2000.0.
-
Creates a new GalacticCoordinates instance.
Declaration
Parameters
l
The galactic longitude
b
The galactic latitude
epoch
The epoch of coordinates. Default is B1950.0
-
Returns the equatorial coordinates corresponding to the current galactic one. Careful: the epoch should necessarily be that of the galactic coordinates which is always B1950.0.
Declaration
Swift
public func makeEquatorialCoordinates() -> EquatorialCoordinates
Return Value
A new EquatorialCoordinates object.
-
Description of GalacticCoordinates
Declaration
Swift
public var description: String { get }