new CelSys(codeopt) → {CelSys}
Instantiate a celestial system.
Parameters
-
code
'galactic'
|'ecliptic'
|'supergalactic'
<optional>
'equatorial'Celestial system.
Returns
-
CelSys
Instance of a celestial system.
Source
Methods
static
ToEq(latlng) → {leaflet.LatLng}
Convert celestial (angular) coordinates to equatorial.
Parameters
-
latlng
leaflet.LagLng
Celestial coordinates (e.g., ecliptic latitude and longitude).
Returns
-
leaflet.LatLng
Equatorial 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.LagLng
Equatorial coordinates.
Returns
-
leaflet.LatLng
Celestial coordinates (e.g., ecliptic latitude and longitude).