pub struct TargetInspector;Expand description
Read-only inspection utilities for morph target delta arrays.
Implementations§
Source§impl TargetInspector
impl TargetInspector
Sourcepub fn inspect(deltas: &[[f64; 3]]) -> TargetInfo
pub fn inspect(deltas: &[[f64; 3]]) -> TargetInfo
Produce a TargetInfo summary of the given deltas.
Sourcepub fn inspect_named(deltas: &[[f64; 3]], name: &str) -> TargetInfo
pub fn inspect_named(deltas: &[[f64; 3]], name: &str) -> TargetInfo
Produce a TargetInfo summary with a name.
Sourcepub fn affected_vertices(deltas: &[[f64; 3]], threshold: f64) -> Vec<usize>
pub fn affected_vertices(deltas: &[[f64; 3]], threshold: f64) -> Vec<usize>
Return the indices of vertices displaced above threshold.
Sourcepub fn bounding_box(deltas: &[[f64; 3]]) -> ([f64; 3], [f64; 3])
pub fn bounding_box(deltas: &[[f64; 3]]) -> ([f64; 3], [f64; 3])
Axis-aligned bounding box of the delta field: (min, max).
Sourcepub fn max_displacement(deltas: &[[f64; 3]]) -> f64
pub fn max_displacement(deltas: &[[f64; 3]]) -> f64
Maximum displacement magnitude in the delta array.
Sourcepub fn rms_displacement(deltas: &[[f64; 3]]) -> f64
pub fn rms_displacement(deltas: &[[f64; 3]]) -> f64
Root-mean-square displacement.
Auto Trait Implementations§
impl Freeze for TargetInspector
impl RefUnwindSafe for TargetInspector
impl Send for TargetInspector
impl Sync for TargetInspector
impl Unpin for TargetInspector
impl UnsafeUnpin for TargetInspector
impl UnwindSafe for TargetInspector
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> 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