Skip to main content

spring

Function spring 

Source
pub fn spring(
    spring: Spring,
    tolerance: f64,
    max_points: usize,
) -> Option<SpringEasing>
Expand description

A spring’s motion from 0 to 1 over the time it takes to stay within 0.001 of 1, as a table within tolerance of it of at most max_points points (sampled).

None for a mass, stiffness or damping that is not positive and finite, a velocity that is not finite, or a spring that takes more than MAX_SPRING_SECONDS to settle.