Expand description
Advanced trajectory integration methods (RK4, RK45)
This module provides production-grade numerical integration for ballistic trajectories:
- RK4: 4th-order Runge-Kutta (fixed step)
- RK45: Dormand-Prince adaptive method (same as scipy.integrate.solve_ivp)
MBA-155: Upstreamed from ballistics_rust for shared use
Structs§
- Trajectory
Params - Parameters for trajectory computation
Functions§
- integrate_
trajectory - Main trajectory integration function
- solve_
trajectory_ rust - Python-exposed function for complete trajectory integration
- try_
integrate_ trajectory - Checked sibling of
integrate_trajectory(MBA-1338): rejects malformed wind segments with a typedWindSegmentErrorbefore sorting, vector precomputation, or producing any trajectory points, so a caller can never receive a poisoned trajectory from non-finite segment fields. The error’sindexrefers to the caller’s own segment ordering. - try_
solve_ trajectory_ rust - Checked sibling of
solve_trajectory_rust(MBA-1338): rejects malformed wind segments with a typedWindSegmentErrorbefore any integration work or trajectory points are produced. Bindings should migrate to this entry point so malformed segments surface as a structured error instead of a silently poisoned trajectory.