pub enum RestitutionCombineRule {
Average,
Min,
Max,
Multiply,
GeometricMean,
HarmonicMean,
}Expand description
Rule for combining restitution coefficients of two materials in contact.
Variants§
Average
Arithmetic average: (r1 + r2) / 2
Min
Minimum of the two values
Max
Maximum of the two values
Multiply
Product: r1 * r2
GeometricMean
Geometric mean: sqrt(r1 * r2)
HarmonicMean
Harmonic mean: 2r1r2 / (r1 + r2)
Trait Implementations§
Source§impl Clone for RestitutionCombineRule
impl Clone for RestitutionCombineRule
Source§fn clone(&self) -> RestitutionCombineRule
fn clone(&self) -> RestitutionCombineRule
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 RestitutionCombineRule
impl Debug for RestitutionCombineRule
Source§impl PartialEq for RestitutionCombineRule
impl PartialEq for RestitutionCombineRule
impl Copy for RestitutionCombineRule
impl Eq for RestitutionCombineRule
impl StructuralPartialEq for RestitutionCombineRule
Auto Trait Implementations§
impl Freeze for RestitutionCombineRule
impl RefUnwindSafe for RestitutionCombineRule
impl Send for RestitutionCombineRule
impl Sync for RestitutionCombineRule
impl Unpin for RestitutionCombineRule
impl UnsafeUnpin for RestitutionCombineRule
impl UnwindSafe for RestitutionCombineRule
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