Skip to main content

MAX_TRAJECTORY_POINTS

Constant MAX_TRAJECTORY_POINTS 

Source
pub const MAX_TRAJECTORY_POINTS: usize = 250_000;
Expand description

Hard ceiling for points retained by a single TrajectorySolver result.

The cap applies across Euler, fixed RK4, and adaptive RK45, including an interpolated max-range endpoint. Solves that would exceed it return BallisticsError instead of truncating or growing their point buffer without bound.