pub struct SoftElement { /* private fields */ }Implementations§
Source§impl SoftElement
impl SoftElement
pub const PARTICLES: usize = 4
pub const UNUSED: u32 = u32::MAX
pub fn distance(first: u32, second: u32, rest: f32) -> Self
pub fn area(first: u32, second: u32, third: u32, rest: f32) -> Self
pub fn bend( apex_a: u32, apex_b: u32, edge_a: u32, edge_b: u32, rest: f32, ) -> Self
pub fn volume( first: u32, second: u32, third: u32, fourth: u32, rest: f32, ) -> Self
pub fn compliance(self, compliance: f32) -> Self
pub fn yielding(self, yield_strain: f32, plastic_flow: f32) -> Self
pub fn fracturing(self, break_strain: f32) -> Self
pub const fn kind(&self) -> SoftElementKind
pub const fn rest(&self) -> f32
pub const fn compliance_of(&self) -> f32
pub const fn yield_strain_of(&self) -> f32
pub const fn break_strain_of(&self) -> f32
pub const fn plastic_flow_of(&self) -> f32
pub fn carries_strength(&self) -> bool
pub const fn particles(&self) -> [u32; 4]
pub fn participants(&self) -> impl Iterator<Item = u32> + '_
Trait Implementations§
Source§impl Clone for SoftElement
impl Clone for SoftElement
Source§fn clone(&self) -> SoftElement
fn clone(&self) -> SoftElement
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 moreimpl Copy for SoftElement
Source§impl Debug for SoftElement
impl Debug for SoftElement
Source§impl PartialEq for SoftElement
impl PartialEq for SoftElement
impl StructuralPartialEq for SoftElement
Auto Trait Implementations§
impl Freeze for SoftElement
impl RefUnwindSafe for SoftElement
impl Send for SoftElement
impl Sync for SoftElement
impl Unpin for SoftElement
impl UnsafeUnpin for SoftElement
impl UnwindSafe for SoftElement
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