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
galacticLongitudeThe galactic longitude
galacticLatitudeThe galactic latitude
epochThe epoch of coordinates. Default is B1950.0
equinoxThe optional equinox, default to standard equinox J2000.0.
-
Creates a new GalacticCoordinates instance.
Declaration
Parameters
lThe galactic longitude
bThe galactic latitude
epochThe 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() -> EquatorialCoordinatesReturn Value
A new EquatorialCoordinates object.
-
Description of GalacticCoordinates
Declaration
Swift
public var description: String { get }
View on GitHub
Install in Dash
GalacticCoordinates Structure Reference