Skip to main content

Module trajectory_integration

Module trajectory_integration 

Source
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§

TrajectoryParams
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 typed WindSegmentError before sorting, vector precomputation, or producing any trajectory points, so a caller can never receive a poisoned trajectory from non-finite segment fields. The error’s index refers 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 typed WindSegmentError before 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.