Structures
The following structures are available globally.
-
The Degree is a unit of angle.
See moreDeclaration
Swift
public struct Degree : NumericType, CustomStringConvertible
-
The ArcMinute is a unit of angle.
See moreDeclaration
Swift
public struct ArcMinute : NumericType, CustomStringConvertible
-
The ArcSecond is a unit of angle.
See moreDeclaration
Swift
public struct ArcSecond : NumericType, CustomStringConvertible
-
The Radian is a unit of angle.
See moreDeclaration
Swift
public struct Radian : NumericType, CustomStringConvertible
-
Struct to encapsulate amount of proper motion in equatorial reference.
See moreDeclaration
Swift
public struct ProperMotion
-
The coordinates of an object in the equatorial system, based on Earth equator.
See moreDeclaration
Swift
public struct EquatorialCoordinates : CustomStringConvertible
-
The coordinates in the ecliptic (a.k.a. celestial) system, based on solar-system planets orbital planes.
See moreDeclaration
Swift
public struct EclipticCoordinates : CustomStringConvertible
-
The coordinates of an object in the Milky Way galactic system.
See moreDeclaration
Swift
public struct GalacticCoordinates : CustomStringConvertible
-
The coordinates of an object as seen from an observer location on Earth.
See moreDeclaration
Swift
public struct HorizontalCoordinates : CustomStringConvertible
-
The BinaryStarOrbitalElements struct encompasses all orbital elements of a binary star.
See moreDeclaration
Swift
public struct BinaryStarOrbitalElements
-
The BinaryStarDetails struct encompasses elements of a binary star.
See moreDeclaration
Swift
public struct BinaryStarDetails
-
Utility functions that can replace and restore the
See morefatalError
global function.Declaration
Swift
public struct FatalErrorUtil
-
The AstronomicalUnit is a unit of distance.
See moreDeclaration
Swift
public struct AstronomicalUnit : NumericType, CustomStringConvertible
-
The Parsec is a unit of distance.
See moreDeclaration
Swift
public struct Parsec : NumericType, CustomStringConvertible
-
The Meter is a unit of distance.
See moreDeclaration
Swift
public struct Meter : NumericType, CustomStringConvertible
-
The Kilometer is a unit of distance.
See moreDeclaration
Swift
public struct Kilometer : NumericType, CustomStringConvertible
-
The Magnitude is a unit of flux.
See moreDeclaration
Swift
public struct Magnitude : NumericType
-
The GeographicCoordinates object encompasses the basic elements of a location on Earth, including its altitude.
See moreDeclaration
Swift
public struct GeographicCoordinates
-
The Julian Day is a continuous count of days and fractions thereof from the beginning of the year -4712. By tradition, the Julian Day begins at Greenwhich mean noon, that is, at 12h Universal Time. Julian Day structs conform to SwiftAA Numeric type protocol.
See moreDeclaration
Swift
public struct JulianDay : NumericType, CustomStringConvertible
-
These coordinates describe the position of the four great satellites of Jupiter, with respect to the planet, as seen from the Earth. These apparent rectangular coordinates Z and Y are measured from the center of the disk of Jupiter, in units of the planet’s equatorial radius. X is measured positively to the west of Jupiter, the axis coinciding with equator of the planet. Y is measured positively to the north, the axis coinciding with the rotation axis of the planet. Z is negative if the satellite is closer to the Earth than Jupiter, and positive otherwise.
Declaration
Swift
public struct GalileanMoonRectangularCoordinates
-
The GalileanMoon struct encompasses all properties of Galilean moons
See moreDeclaration
Swift
public struct GalileanMoon
-
AA, Chapter 53 (p.371): The mean period of rotation of the Moon is equal to the mean sidereal period of revolution around the Earth, and the mean plane of the lunar equator intersects the ecliptic at a constant incliation (see @MeanLunarEquatorInclination) […]. On the average, therefore, the same hemisphere of the Moon is always turned towards the Earth. However, apparent oscillations known as optical librations, which are due to variations in the geometric position of the Earth relative to the lunar surface during the course of the orbital motion of the Moon, allow about 59% of the surface to be observed from tbe Earth. The mean center of the Moon’s apparent disk is the origin of the system of selenographic coordinates on the surface of the Moon [see below]. The displacement, at any time, of the mean center of the disk from the apparent center, represents the amount of libration, and is measured by the selenographic coordinates of the apparent center of the disk at that time. AA (p.372): The selenographic longitude and latitude of the Earth, as given in the almanacs, are the geocentric selenographic coordinates of the apparent central point of the disk. At this point on the surface of the Moon, the Earth is in the zenith.
See moreDeclaration
Swift
public struct SelenographicCoordinates
-
The constants for the Jupiter planet.
See moreDeclaration
Swift
public struct JupiterConstants : PlanetConstants
-
The RiseTransitSetTimesDetails struct encompasses all elements of the times of rise, transit and set.
See moreDeclaration
Swift
public struct RiseTransitSetTimesDetails
-
Convenient class for storing the Rise, Transit and Set times of a celestial body.
See moreDeclaration
Swift
public struct RiseTransitSetTimes
-
The GalileanMoon struct encompasses all properties of Galilean moons Saturnian Moons are a world by themselves! We’ll consider the 7 most important for now. Quoting Wikipedia (July 2016): The moons of Saturn are numerous and diverse, ranging from tiny moonlets less than 1 kilometer across to the enormous Titan, which is larger than the planet Mercury. Saturn has 62 moons with confirmed orbits, 53 of which have names and only 13 of which have diameters larger than 50 kilometers. Seven Saturnian moons are large enough to be ellipsoidal in shape, though only two of those, Titan and Rhea, are currently in hydrostatic equilibrium, as well as dense rings with complex orbital motions of their own. Particularly notable among Saturn’s moons are Titan, the second-largest moon (after Jupiter’s Ganymede) in the Solar System, with a nitrogen-rich Earth-like atmosphere and a landscape including hydrocarbon lakes and dry river networks;[5] and Enceladus, which is seemingly similar in chemical makeup to comets, emits jets of gas and dust and may harbor liquid water under its south pole region. Additional data can be taken from this source (referenced by Wikipedia): http://nssdc.gsfc.nasa.gov/planetary/factsheet/saturniansatfact.html
See moreDeclaration
Swift
public struct SaturnianMoon
-
Saturnicentric coordinates are centered on Saturn.
See moreDeclaration
Swift
public struct SaturnicentricCoordinates
-
/ Saturn has many rings. Here we consider the ring system as a whole.
See moreDeclaration
Swift
public struct SaturnRingSystem
-
The Day is a number representing an Earth day.
See moreDeclaration
Swift
public struct Day : NumericType, CustomStringConvertible
-
The Hour is a number representing an Earth hour.
See moreDeclaration
Swift
public struct Hour : NumericType, CustomStringConvertible
-
The Minute is a number representing an Earth minute.
See moreDeclaration
Swift
public struct Minute : NumericType, CustomStringConvertible
-
The Second is a number representing an Earth second.
See moreDeclaration
Swift
public struct Second : NumericType, CustomStringConvertible