mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Add the sun and moon to src/geo
A port of Cesium's Simon 1994 sun and moon positions, its TEME to pseudo-fixed rotation and the JulianDate time handling, with epoch milliseconds as the only input. Results are identical to Cesium's, tested with exact equality from year -500 to 3000 and across every leap second. Times outside the model throw a RangeError, where Cesium's debug build throws.
This commit is contained in:
1 parent
103ecae1f1
commit
5a7c7f3d57
4 files changed
+1021
-2
No files matched your search
+2
-1
@@ -1,10 +1,11 @@
|
||||
/**
|
||||
* @module geo
|
||||
* @description Cesium-free geodesy and vector maths: WGS84, ECEF and
|
||||
* geodetic conversions, east-north-up frames, quaternions, and the sun and
|
||||
* geodetic conversions, east-north-up frames, 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';
|
||||
Reference in new issue
Block a user