Skip to main content

TrajectoryResult

Struct TrajectoryResult 

Source
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: f64

Projectile mass used to derive full-state observation energy.

§line_of_sight_height_m: f64

Height of the horizontal line of sight in the solver’s ground-referenced frame.

§station_speed_of_sound_mps: f64

Station speed of sound used for Mach observations and transition flags.

§termination: TrajectoryTermination

Explicit 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

Source

pub fn position_at_range(&self, target_range: f64) -> Option<Vector3<f64>>

Interpolate position at a given downrange distance (X coordinate, McCoy). Returns the interpolated (x, y, z) position at that range. If the target range exceeds the trajectory, returns the last point.

Source§

impl TrajectoryResult

Source

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.

Source

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

Source§

fn clone(&self) -> TrajectoryResult

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TrajectoryResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.