mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
src/geo/julian.js ports the parts of Cesium's JulianDate that dead
reckoning uses (arithmetic, comparison, the leap-second table and the
conversions to and from epoch milliseconds) onto plain
{dayNumber, secondsOfDay} objects, step for step, so the numbers match
and either module's functions take either date. celestial.js now shares
it instead of keeping its own copy.
motionModel.js and aircraftMotionRegime.js use it with the src/geo
ellipsoid, frame and vector helpers and leave the Cesium allow-list.
14 lines
474 B
JavaScript
14 lines
474 B
JavaScript
/**
|
|
* @module geo
|
|
* @description Cesium-free geodesy and vector maths: WGS84, ECEF and
|
|
* geodetic conversions, east-north-up frames, quaternions, and the sun and
|
|
* moon. Plain numbers and `{x, y, z}` objects only, so code that needs
|
|
* maths but not a renderer does not import one.
|
|
*/
|
|
export * from './vector.js';
|
|
export * from './ellipsoid.js';
|
|
export * from './frames.js';
|
|
export * from './celestial.js';
|
|
export * from './julian.js';
|
|
export * from './quaternion.js';
|