Skip to main content

Module cli_api

Module cli_api 

Source

Structs§

AtmosphericConditions
BallisticInputs
BallisticsError
MonteCarloParams
MonteCarloResults
TrajectoryPoint
TrajectoryResult
TrajectorySolver
WindConditions

Enums§

OutputFormat
UnitSystem

Constants§

DEFAULT_HIT_RADIUS_M
Default hit-zone radius (meters) around the point of aim at the target plane — a 30 cm circle. Shared by the CLI, FFI, and WASM so “hit probability” means the same thing everywhere.

Functions§

calculate_zero_angle
calculate_zero_angle_with_conditions
estimate_bc_from_trajectory
interpolate_powder_temp_curve
Interpolate a muzzle velocity (m/s) from a measured powder-temperature curve at temp_c (Celsius). curve is (temperature_celsius, velocity_m_s) points; it is sorted ascending by temperature before use. Values below the first point or above the last are CLAMPED to the endpoint velocity (no extrapolation beyond measured data), and segments are linearly interpolated. A single point yields a constant.
run_monte_carlo
run_monte_carlo_with_wind