pub struct PhysicsResult {
pub final_positions: Vec<(String, usize, Point3<f64>)>,
pub position_changes: Vec<(String, usize, Vector3<f64>)>,
pub steps: usize,
pub simulation_time: f64,
pub boxes_moved: usize,
pub boxes_at_rest: usize,
pub avg_change: f64,
pub max_change: f64,
pub converged: bool,
pub computation_time_ms: u64,
pub stability_report: Option<StabilityReport>,
}Expand description
Result of physics simulation.
Fields§
§final_positions: Vec<(String, usize, Point3<f64>)>Final positions after simulation.
position_changes: Vec<(String, usize, Vector3<f64>)>Position changes from initial state.
steps: usizeNumber of simulation steps performed.
simulation_time: f64Simulation time (seconds).
boxes_moved: usizeNumber of boxes that moved significantly.
boxes_at_rest: usizeNumber of boxes that are stable at rest.
avg_change: f64Average position change magnitude.
max_change: f64Maximum position change magnitude.
converged: boolWhether simulation converged (all boxes at rest).
computation_time_ms: u64Wall-clock time for computation (milliseconds).
stability_report: Option<StabilityReport>Stability report after simulation.
Implementations§
Source§impl PhysicsResult
impl PhysicsResult
Trait Implementations§
Source§impl Clone for PhysicsResult
impl Clone for PhysicsResult
Source§fn clone(&self) -> PhysicsResult
fn clone(&self) -> PhysicsResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhysicsResult
impl Debug for PhysicsResult
Auto Trait Implementations§
impl Freeze for PhysicsResult
impl RefUnwindSafe for PhysicsResult
impl Send for PhysicsResult
impl Sync for PhysicsResult
impl Unpin for PhysicsResult
impl UnwindSafe for PhysicsResult
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.