Skip to main content

MAX_GRAVITY_DEGREE

Constant MAX_GRAVITY_DEGREE 

Source
pub const MAX_GRAVITY_DEGREE: u16 = 40;
Expand description

Highest spherical-harmonic degree (and order) the evaluator supports.

The built-in coefficient tables are capped at [MAX_COEFF_DIM] rows and the accelerator dispatches on degree ≤ 40; requests above this are rejected by PropSettings::set_gravity and at propagate entry rather than silently clamped. (EGM96 itself is defined to degree 360; supporting that would need heap-allocated Legendre tables — see the note on MAX_COEFF_DIM.)