pub struct ClothEdge {
pub v0: usize,
pub v1: usize,
pub rest_length: f64,
pub stiffness: f64,
pub damping: f64,
}Expand description
A structural spring edge connecting two cloth vertices.
Fields§
§v0: usizeIndex of the first vertex.
v1: usizeIndex of the second vertex.
rest_length: f64Rest length of the spring (m).
stiffness: f64Spring stiffness (N/m).
damping: f64Damping coefficient (N·s/m).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClothEdge
impl RefUnwindSafe for ClothEdge
impl Send for ClothEdge
impl Sync for ClothEdge
impl Unpin for ClothEdge
impl UnsafeUnpin for ClothEdge
impl UnwindSafe for ClothEdge
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