pub struct ProjectileResult {
pub trajectory: Vec<[f64; 5]>,
pub range: f64,
pub max_height: f64,
pub time_of_flight: f64,
pub landed: bool,
pub steps_accepted: u32,
pub steps_rejected: u32,
}Expand description
Trajectory + landing diagnostics for run_projectile_motion (ParticlePhysics).
Fields§
§trajectory: Vec<[f64; 5]>Sampled [t, x, y, vx, vy] rows along the flight.
range: f64Horizontal distance at ground return (interpolated y=0). No-drag: v0²·sin(2θ)/g.
max_height: f64Peak height reached.
time_of_flight: f64Time of flight to ground return (interpolated).
landed: boolWhether the projectile returned to y=0 within max_time.
steps_accepted: u32§steps_rejected: u32Trait Implementations§
Source§impl Clone for ProjectileResult
impl Clone for ProjectileResult
Source§fn clone(&self) -> ProjectileResult
fn clone(&self) -> ProjectileResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProjectileResult
impl RefUnwindSafe for ProjectileResult
impl Send for ProjectileResult
impl Sync for ProjectileResult
impl Unpin for ProjectileResult
impl UnsafeUnpin for ProjectileResult
impl UnwindSafe for ProjectileResult
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more