pub struct VerletParticle3D { /* private fields */ }Expand description
Single Verlet / PBD particle with inverse mass (0.0 denotes a permanently pinned anchor).
Implementations§
Source§impl VerletParticle3D
Implements impl #impl_generics #name #ty_generics #where_clause.
impl VerletParticle3D
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_position(&self) -> Vec3
pub fn get_mut_position(&mut self) -> &mut Vec3
pub fn set_position(&mut self, val: Vec3) -> &mut Self
pub fn get_prev_position(&self) -> Vec3
pub fn get_mut_prev_position(&mut self) -> &mut Vec3
pub fn set_prev_position(&mut self, val: Vec3) -> &mut Self
pub fn get_inv_mass(&self) -> f32
pub fn get_mut_inv_mass(&mut self) -> &mut f32
pub fn set_inv_mass(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for VerletParticle3D
impl Clone for VerletParticle3D
impl Copy for VerletParticle3D
Source§impl Debug for VerletParticle3D
impl Debug for VerletParticle3D
Source§impl PartialEq for VerletParticle3D
impl PartialEq for VerletParticle3D
impl StructuralPartialEq for VerletParticle3D
Auto Trait Implementations§
impl Forget for VerletParticle3D
impl Freeze for VerletParticle3D
impl Move for VerletParticle3D
impl RefUnwindSafe for VerletParticle3D
impl Send for VerletParticle3D
impl Sync for VerletParticle3D
impl Unpin for VerletParticle3D
impl UnsafeUnpin for VerletParticle3D
impl UnwindSafe for VerletParticle3D
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