|
lob 0.11.0
Exterior ballistics library — API + technical reference
|
lob requires C++14 and floating-point support.
lob is CMake FetchContent-friendly with no dependencies.
For documentation (requires developer mode for the docs target):
See BUILDING.md for install/packaging options.
At the heart of lob is the builder → context → solve pipeline (Builder, Design Decisions).
Builder validates and returns an error in Context::error if required inputs are missing (BC, velocity, zero). Check ctx.error == lob::ErrorT::kNone before solving.
The same builders scale: add atmosphere, wind, Coriolis, twist and geometry as needed — see README.md for a copy-pasteable richer builder (G7, 155 gr, Milwaukee example). Any subset may be supplied; lob fills the rest with defaults or derives higher-fidelity corrections when geometry is complete (Spin Drift and Aerodynamic Jump). Missing data degrades fidelity rather than failing.
See Inverse Solve for the difference between the two and when to prefer each.
lob stores everything internally in feet, seconds, pounds and radians. The public API accepts customary units (inches, yards, fps, grains, inHg, degrees F, MOA/MIL/degrees/Iphy) and the headers expose free conversion helpers (LobMoaToMil, lob::MoaToMil, etc.). See Units and Design Decisions.
From here, the natural reading order is: Builder for the construction pipeline, ODE Integration for the integration method, and Validation for how correctness is established.