pub struct SpringSystem { /* private fields */ }Expand description
Structure that adjust the position of the helices
Implementations§
Source§impl SpringSystem
impl SpringSystem
Sourcepub fn from_design<S, T>(design: &Design<S, T>) -> Self
pub fn from_design<S, T>(design: &Design<S, T>) -> Self
Create a system from a design, the system will adjust the helices of the design.
Sourcepub fn solve<S, T>(&mut self, design: &mut Design<S, T>, dt: f64)
pub fn solve<S, T>(&mut self, design: &mut Design<S, T>, dt: f64)
Adjuste the helices of the design, do not show intermediate steps
Sourcepub fn solve_one_step<S, T>(
&mut self,
design: &mut Design<S, T>,
dt: f64,
) -> f64
pub fn solve_one_step<S, T>( &mut self, design: &mut Design<S, T>, dt: f64, ) -> f64
Do one step of simulation with time step dt
Auto Trait Implementations§
impl Freeze for SpringSystem
impl RefUnwindSafe for SpringSystem
impl Send for SpringSystem
impl Sync for SpringSystem
impl Unpin for SpringSystem
impl UnwindSafe for SpringSystem
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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