EquatorialCoordinates
public struct EquatorialCoordinates : CustomStringConvertible
The coordinates of an object in the equatorial system, based on Earth equator.
-
The right ascension
Declaration
Swift
public let rightAscension: Hour -
The declination
Declaration
Swift
public let declination: Degree -
The epoch of the coordinates.
Declaration
Swift
public let epoch: Epoch -
The reference equinox.
Declaration
Swift
public let equinox: Equinox -
Convenience accessor for the right ascension
Declaration
Swift
public var alpha: Hour { get } -
Convenience accessor of the declination
Declaration
Swift
public var delta: Degree { get } -
Creates an EquatorialCoordinates instance.
Declaration
Parameters
rightAscensionThe right ascension value
declinationThe declination value
epochThe optional epoch, default to J2000.0.
equinoxThe optional equinox, default to standard equinox J2000.0.
-
Creates an EquatorialCoordinates instance.
Declaration
Parameters
alphaThe alpha (R.A.) value
deltaThe delta (Dec.) value
epochThe optional epoch value, default to J2000.0. It is not called ‘epsilon’ to avoid confusion with equinox.
equinoxThe optional equinox, default to standard equinox J2000.0.
-
Transform the coordinates to the ecliptic (celestial) system, at same epoch and for the same equinox.
During the transformation, the mean obliquity of the ecliptic of the date (epoch) is used. Recall that the obliquity of the ecliptic is the inclination of Earth’s rotation axis, or the angle between equator and the ecliptic, that is, the Earth orbital plane. ‘Mean’ here means that nutation is not taken into account.
Declaration
Swift
public func makeEclipticCoordinates() -> EclipticCoordinatesReturn Value
A new EclipticCoordinates object.
-
The galactic (Milky Way) North Pole equatorial coordinates.
These coordinates have been fixed conventionally and must be considered as expect for the equinox B1950. They have been defined by the International Astronomical Union in 1959. The origin of the galactic longitude is the point (in western Sagittarius) of the galactic equator which is 33º distant from the ascending node (in western Aquila) of the galactic equator with the equator of B1950.0. See AA p.94.
Declaration
Swift
public static func adoptedGalacticNorthPole() -> EquatorialCoordinatesReturn Value
A new EquatorialCoordinates instance.
-
Transform the coordinates to the galactic system, at same epoch and for the same equinox.
Declaration
Swift
public func makeGalacticCoordinates() -> GalacticCoordinatesReturn Value
A new galactic coordinates instance.
-
Transforms the coordinates into horizontal (local) ones for a given observer location.
Declaration
Swift
public func makeHorizontalCoordinates(for location: GeographicCoordinates, at julianDay: JulianDay) -> HorizontalCoordinatesParameters
locationThe geographic location of the observer.
julianDayThe julian day of observation.
Return Value
A new horizontal coordinates instance.
-
Returns new EquatorialCoordinates precessed to the given epoch.
Declaration
Swift
public func precessedCoordinates(to newEquinox: Equinox) -> EquatorialCoordinatesParameters
newEquinoxThe new equinox to precess to.
Return Value
A new EquatorialCoordinates instance.
-
Returns new EquatorialCoordinates shifted to the new epoch by the given proper motion.
Declaration
Swift
public func shiftedCoordinates(to newEpoch: Epoch, with properMotion: ProperMotion) -> EquatorialCoordinatesParameters
newEpochThe new epoch of coordinates.
properMotionThe amount of proper motion
Return Value
A new EquatorialCoordinates instance.
-
Returns the angular separation between two equatorial coordinates.
Declaration
Swift
public func angularSeparation(with otherCoordinates: EquatorialCoordinates) -> DegreeParameters
otherCoordinatesThe other coordinates to consider.
Return Value
A angle value, between the two coordinates.
-
Returns the position angle relative to other coordinates.
Declaration
Swift
public func positionAngle(relativeTo otherCoordinates: EquatorialCoordinates) -> DegreeParameters
otherCoordinatesThe other coordinates.
Return Value
The position angle between the two coordinates.
-
Return new ecliptic coordinates corrected for the annual aberration of the Earth. It must be used for star coordinates, not planets. See AA, p149.
Declaration
Swift
public func correctedForAnnualAberration(julianDay: JulianDay, highPrecision: Bool = true) -> EquatorialCoordinatesParameters
julianDayThe julian day for which the aberration is computed.
highPrecisionIf
false, the Ron-Vondrák algorithm is used. See AA p.153. Iftrue, the newer VSOP87 theory is used.Return Value
Corected ecliptic coordinates of the star.
-
Description of EquatorialCoordinates
Declaration
Swift
public var description: String { get }
View on GitHub
Install in Dash
EquatorialCoordinates Structure Reference