Skip to content

MagneticFieldModel

Defined in: mod.rs:37

pub trait MagneticFieldModel: [Send](https://doc.rust-lang.org/std/marker/trait.Send.html) + [Sync](https://doc.rust-lang.org/std/marker/trait.Sync.html)

A geomagnetic field model.

Computes the magnetic field vector in ECEF Cartesian coordinates. The model is frame-agnostic: it receives pre-computed geodetic coordinates and returns the field in the Earth-fixed frame. The caller is responsible for rotating to their inertial frame.

fn field_ecef(&self, input: &MagneticFieldInput<’_>) -> [f64; 3]

Compute the magnetic field vector in ECEF Cartesian [T].