Skip to main content

Crate waft_physics

Crate waft_physics 

Source
Expand description

Flutter counterpart: package:flutter/physics.dart.

Structs§

BoundedFrictionSimulation
A FrictionSimulation that clamps the modeled particle to a specific range of values.
ClampedSimulation
A simulation that applies limits to another simulation.
FrictionSimulation
A simulation that applies a drag to slow a particle down.
GravitySimulation
A simulation that applies a constant accelerating force.
ScrollSpringSimulation
A SpringSimulation where the value of x is guaranteed to have exactly the end value when the simulation is_done.
SpringDescription
Structure that describes a spring’s constants.
SpringSimulation
A spring simulation.
Tolerance
Structure that specifies maximum allowable magnitudes for distances, durations, and velocity differences to be considered equal.

Enums§

SpringType
The kind of spring solution that the SpringSimulation is using to simulate the spring.

Traits§

Simulation
The base class for all simulations.

Functions§

near_equal
Whether two doubles are within a given distance of each other.
near_zero
Whether a double is within a given distance of zero.