ScrollSpringSimulation class

A SpringSimulation where the value of x is guaranteed to have exactly the end value when the simulation isDone().

Inheritance

Constructors

ScrollSpringSimulation(SpringDescription spring, double start, double end, double velocity, { Tolerance tolerance: Tolerance.defaultTolerance })
Creates a spring simulation from the provided spring description, start distance, end distance, and initial velocity. [...]

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tolerance Tolerance
How close to the actual end of the simulation a value at a particular time must be before isDone considers the simulation to be "done". [...]
read / write, inherited
type SpringType
The kind of spring being simulated, for debugging purposes. [...]
read-only, inherited

Methods

x(double time) double
dx(double time) double
The velocity of the object in the simulation at the given time.
inherited
isDone(double time) bool
Whether the simulation is "done" at the given time.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited