Add quaternions to src/geo

Ports Cesium's axis-angle, product, rotation-matrix and heading-pitch-roll
quaternions, with rotations given as frame axes. They match Cesium bit for
bit, including heading-pitch-roll frames on the polar axis. The model
convention is documented: at heading 0 the forward axis points east.
This commit is contained in:
Sameh Khamis committed 2026-11-05 14:15:13 -08:00
1 parent 5a7c7f3d57
commit 11167fa608
4 files changed
+377 -4

No files matched your search

+4 -3
View File
@@ -1,11 +1,12 @@
/**
* @module geo
* @description Cesium-free geodesy and vector maths: WGS84, ECEF 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.
* 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 './quaternion.js';