pub struct MeshDiffStats {
pub vertex_count: usize,
pub changed_count: usize,
pub max_displacement: f32,
pub avg_displacement: f32,
pub rms_displacement: f32,
pub max_vertex_idx: usize,
}Expand description
Statistics about vertex displacement between two position buffers.
Fields§
§vertex_count: usize§changed_count: usizeNumber of vertices that moved more than threshold.
max_displacement: f32§avg_displacement: f32§rms_displacement: f32§max_vertex_idx: usizeIndex of the vertex with maximum displacement.
Implementations§
Trait Implementations§
Source§impl Clone for MeshDiffStats
impl Clone for MeshDiffStats
Source§fn clone(&self) -> MeshDiffStats
fn clone(&self) -> MeshDiffStats
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 moreAuto Trait Implementations§
impl Freeze for MeshDiffStats
impl RefUnwindSafe for MeshDiffStats
impl Send for MeshDiffStats
impl Sync for MeshDiffStats
impl Unpin for MeshDiffStats
impl UnsafeUnpin for MeshDiffStats
impl UnwindSafe for MeshDiffStats
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 more