RK4SpringSim class
Wraps RK4Spring as a Sim<double> for use with SimAnimationController.
Unlike SimDouble (which wraps Flutter's analytical SpringSimulation), this uses numerical RK4 integration with the soft-onset acceleration ramp.
Constructors
- RK4SpringSim({required double start, required double end, double velocity = 0.0, RK4SpringDescription desc = const RK4SpringDescription()})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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".
finalinherited
Methods
-
isDone(
double time) → bool -
Whether the simulation is "done" at the given time.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
value(
double time) → double -
The output of the object in the simulation at the given time.
override
-
velocity(
double time) → double -
The change in value of the object in the simulation at the given time.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited