Skip to main content

hpr_core/
lib.rs

1//! Core math, units, frames, Earth, gravity and magnetic-field models, interpolation tables and
2//! shared error types.
3//!
4//! **Guide:** [Frames and sign conventions][guide-frames], [Geodesy][guide-geodesy],
5//! [Gravity][guide-gravity], [The magnetic field][guide-magnetic], [Interpolation
6//! tables][guide-interpolation] and [Adaptive quadrature][guide-quadrature]: the models, their
7//! sources, how well they are validated and what they leave out.
8//!
9//! [guide-frames]: https://nrdptel.github.io/hpr-sim/physics/frames.html
10//! [guide-geodesy]: https://nrdptel.github.io/hpr-sim/physics/geodesy.html
11//! [guide-gravity]: https://nrdptel.github.io/hpr-sim/physics/gravity.html
12//! [guide-magnetic]: https://nrdptel.github.io/hpr-sim/physics/magnetic.html
13//! [guide-interpolation]: https://nrdptel.github.io/hpr-sim/physics/interpolation.html
14//! [guide-quadrature]: https://nrdptel.github.io/hpr-sim/physics/quadrature.html
15//!
16//! Vectors, quaternions and matrices are glam's `f64` types, re-exported here so every crate uses
17//! the same ones. Quantities are SI; frames and sign conventions follow
18//! [Frames and sign conventions][guide-frames].
19
20pub mod attitude;
21pub mod earth;
22pub mod error;
23pub mod frames;
24pub mod geodesic;
25pub mod geodesy;
26pub mod gravity;
27pub mod interp;
28pub mod magnetic;
29pub mod quadrature;
30pub mod random;
31pub mod tool;
32
33pub use error::CoreError;
34pub use glam::{DMat3, DQuat, DVec3};