Expand description
FFI bindings for iOS/Swift integration
Structs§
- FFIAtmospheric
Conditions - FFIBallistic
Inputs - FFIMonte
Carlo Params - FFIMonte
Carlo Results - FFITrajectory
Point - FFITrajectory
Result - FFITrajectory
Sample - FFIWind
Conditions
Constants§
- MIN_
FFI_ STEP_ SIZE_ MS - Minimum C-ABI trajectory
step_size, in milliseconds (0.1 ms = 0.0001 s).
Functions§
- ballistics_
calculate_ ⚠trajectory - Calculate a trajectory through the C ABI.
- ballistics_
calculate_ ⚠trajectory_ with_ drag_ table ballistics_calculate_trajectorywith a caller-supplied custom drag deck (Cd vs Mach, e.g. Hornady CDM / Doppler-radar data). The deck REPLACES the G-model + BC for drag:bc_type/bc_valueare ignored, and the retardation denominator becomes the projectile’s sectional density (mass and diameter ininputsmust therefore be positive). Mach values must be strictly ascending with at least 2 points and finite positive Cd; outside the deck’s Mach domain the nearest endpoint Cd is held.- ballistics_
calculate_ ⚠zero_ angle - Calculate the zero angle for a target distance through the C ABI.
- ballistics_
calculate_ ⚠zero_ angle_ with_ drag_ table ballistics_calculate_zero_anglewith a caller-supplied custom drag deck (Cd vs Mach, e.g. Hornady CDM / Doppler-radar data). The deck REPLACES the G-model + BC for drag:bc_type/bc_valueare ignored, and the retardation denominator becomes the projectile’s sectional density (mass and diameter ininputsmust therefore be positive). Mach values must be strictly ascending with at least 2 points and finite positive Cd; outside the deck’s Mach domain the nearest endpoint Cd is held. Pair this withballistics_calculate_trajectory_with_drag_tableusing the same deck to fly the solved angle — the two exports share identical deck semantics.- ballistics_
free_ ⚠monte_ carlo_ results - Release Monte Carlo results allocated by either Monte Carlo C entry point.
- ballistics_
free_ ⚠trajectory_ result - Release a trajectory result allocated by
ballistics_calculate_trajectory. - ballistics_
get_ version - ballistics_
monte_ ⚠carlo - Run a Monte Carlo simulation through the C ABI.
- ballistics_
monte_ ⚠carlo_ with_ direction_ std_ dev - Run a Monte Carlo simulation with independent wind-direction uncertainty through the C ABI.
- ballistics_
quick_ trajectory