Structs§
- Atmospheric
Conditions - Ballistic
Inputs - Ballistics
Error - BcEstimate
- The result of a single BC fit (one drag model, one fit basis).
- Monte
Carlo Params - Monte
Carlo Results - Trajectory
Point - Trajectory
Result - Trajectory
Solver - Wind
Conditions
Enums§
- BcFit
Mode - What a BC estimate is fit against.
- Output
Format - Unit
System
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.
- MAX_
TRAJECTORY_ POINTS - Hard ceiling for points retained by a single
TrajectorySolverresult. - TARGET_
NOT_ REACHED_ SENTINEL_ M - Vertical-position marker for a Monte Carlo sample that never reached the target plane.
Functions§
- calculate_
zero_ angle - calculate_
zero_ angle_ with_ conditions - estimate_
bc_ fit - Estimate a BC by fitting a simulated trajectory to measured data, for a chosen drag model (G1, G7, …) and fit basis (drop or velocity). Uses a coarse 0.01 sweep over plausible BCs followed by a 0.001 local refine around the coarse best.
- estimate_
bc_ from_ trajectory - Estimate a G1 BC from a drop curve. Back-compatible wrapper over
estimate_bc_fit;pointsare(distance_m, drop_m). - interpolate_
powder_ temp_ curve - Interpolate a muzzle velocity (m/s) from a measured powder-temperature curve at
temp_c(Celsius).curveis(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_ direction_ std_ dev - Run Monte Carlo with an independent wind-direction standard deviation in radians.
- run_
monte_ carlo_ with_ wind - run_
monte_ carlo_ with_ wind_ and_ direction_ std_ dev - Run Monte Carlo with explicit base wind and independent direction uncertainty in radians.