Move aircraft motion's Julian-date math off Cesium

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.
This commit is contained in:
Sameh Khamis committed 2026-11-07 18:49:23 -08:00
1 parent 1f1d08f34e
commit 00a0a0dbc7
9 files changed
+481 -250

No files matched your search

+1 -1
View File
@@ -216,9 +216,9 @@ test('consumer build includes only infrastructure code and resolves assets under
'input.js',
'inputOwnership.js',
'internals.js',
'julian.js',
'localGeojsonCore.js',
'localGeojsonLod.js',
'motionModel.js',
'pickRegistry.js',
'polyline.js',
'query.js',