new CelSys(codeopt) → {CelSys}
Instantiate a celestial system.
Parameters
-
code
'galactic'|'ecliptic'|'supergalactic'<optional>
'equatorial'Celestial system.
Returns
-
CelSysInstance of a celestial system.
Source
Methods
static
ToEq(latlng) → {leaflet.LatLng}
Convert celestial (angular) coordinates to equatorial.
Parameters
-
latlng
leaflet.LagLngCelestial coordinates (e.g., ecliptic latitude and longitude).
Returns
-
leaflet.LatLngEquatorial coordinates.
Source
privatestatic
_celsysmatInit(celsys) → {Array.<Array.<number>>}
Return the transformation matrix between celestial coordinates for the given system and equatorial coordinates.
Parameters
-
celsys
'galactic'|'ecliptic'|'supergalactic'Type of celestial system.
Returns
-
Array.<Array.<number>>Transformation matrix.
Source
static
fromEq(latlng) → {leaflet.LatLng}
Convert equatorial coordinates to another celestial system.
Parameters
-
latlng
leaflet.LagLngEquatorial coordinates.
Returns
-
leaflet.LatLngCelestial coordinates (e.g., ecliptic latitude and longitude).