drop_to_adjustment

Function drop_to_adjustment 

Source
pub fn drop_to_adjustment(
    drop_yd: f64,
    range_yd: f64,
    unit: AdjustmentUnit,
) -> f64
Expand description

Convert drop to adjustment unit (MIL, MOA, or SMOA/IPHY). unit maps onto ClickBase/adjustment_factor (MBA-1355) so the CLI, the WASM terminal, and the bridge card service share one conversion table.

AdjustmentUnit::Clicks has no fixed factor of its own — clicks depend on a graduation (ClickValue) supplied separately — so callers MUST resolve clicks via clicks_for() before ever reaching this function with unit == Clicks. That arm exists only as a release-safe fallback (falls back to MIL) guarded by a debug_assert!.