InterpolationSimulation class
A Simulation that interpolates between two values over a given duration.
- Inheritance
-
- Object
- Simulation
- InterpolationSimulation
Constructors
- InterpolationSimulation({required double start, required double end, required Curve curve, required double durationInSeconds})
- Creates a Simulation that interpolates between two values over a given duration.
Properties
- curve → Curve
-
The curve to use for the interpolation.
final
- durationInSeconds ↔ double
-
The duration of the interpolation in seconds.
latefinal
- end → double
-
The end value of the interpolation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → double
-
The start value of the interpolation.
final
- 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".
getter/setter pairinherited
Methods
-
dx(
double time) → double -
The velocity of the object in the simulation at the given time.
override
-
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
-
x(
double time) → double -
The position of the object in the simulation at the given time.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited