pub struct TrajectoryResult {Show 17 fields
pub max_range: f64,
pub max_height: f64,
pub time_of_flight: f64,
pub impact_velocity: f64,
pub impact_energy: f64,
pub projectile_mass_kg: f64,
pub line_of_sight_height_m: f64,
pub station_speed_of_sound_mps: f64,
pub termination: TrajectoryTermination,
pub points: Vec<TrajectoryPoint>,
pub sampled_points: Option<Vec<TrajectorySample>>,
pub min_pitch_damping: Option<f64>,
pub transonic_mach: Option<f64>,
pub angular_state: Option<AngularState>,
pub max_yaw_angle: Option<f64>,
pub max_precession_angle: Option<f64>,
pub aerodynamic_jump: Option<AerodynamicJumpComponents>,
}Fields§
§max_range: f64§max_height: f64§time_of_flight: f64§impact_velocity: f64§impact_energy: f64§projectile_mass_kg: f64Projectile mass used to derive full-state observation energy.
line_of_sight_height_m: f64Height of the horizontal line of sight in the solver’s ground-referenced frame.
station_speed_of_sound_mps: f64Station speed of sound used for Mach observations and transition flags.
termination: TrajectoryTerminationExplicit reason the integration stopped; consumers must not infer this from the endpoint.
points: Vec<TrajectoryPoint>§sampled_points: Option<Vec<TrajectorySample>>§min_pitch_damping: Option<f64>§transonic_mach: Option<f64>§angular_state: Option<AngularState>§max_yaw_angle: Option<f64>§max_precession_angle: Option<f64>§aerodynamic_jump: Option<AerodynamicJumpComponents>Implementations§
Source§impl TrajectoryResult
impl TrajectoryResult
Sourcepub fn observation_at_range_checked(
&self,
distance_m: f64,
) -> Result<TrajectoryObservation, TrajectoryObservationError>
pub fn observation_at_range_checked( &self, distance_m: f64, ) -> Result<TrajectoryObservation, TrajectoryObservationError>
Return a checked full-state observation at an in-range downrange distance.
Unlike Self::position_at_range, this method never clamps an out-of-range request to
the final point.
Sourcepub fn sample_observations(
&self,
interval_m: f64,
max_samples: usize,
) -> Result<Vec<TrajectoryObservation>, TrajectoryObservationError>
pub fn sample_observations( &self, interval_m: f64, max_samples: usize, ) -> Result<Vec<TrajectoryObservation>, TrajectoryObservationError>
Sample checked observations on a regular distance grid and include the exact terminal point once.
Regular grid points are strictly before the actual reached range. If the terminal is
off-grid it is appended; if it is on-grid it appears only as the final terminal sample.
max_samples lets protocol layers enforce a limit smaller than the engine-wide hard cap.
Trait Implementations§
Source§impl Clone for TrajectoryResult
impl Clone for TrajectoryResult
Source§fn clone(&self) -> TrajectoryResult
fn clone(&self) -> TrajectoryResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TrajectoryResult
impl RefUnwindSafe for TrajectoryResult
impl Send for TrajectoryResult
impl Sync for TrajectoryResult
impl Unpin for TrajectoryResult
impl UnsafeUnpin for TrajectoryResult
impl UnwindSafe for TrajectoryResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.