Independent2DSim class

2D Sim where each axis is independent of the other.

Used for drag/fling on both axes simultaneously.

Inheritance

Constructors

Independent2DSim({required Simulation xSim, required Simulation ySim, Tolerance? tolerance})
Independent2DSim.static({required Offset value})
Convenience constructor when the value is fixed.
Independent2DSim.symmetric({required Simulation sim, Tolerance? tolerance})
Convenience constructor when the simulation is symmetric on each axis.

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
xSim → Simulation
final
ySim → Simulation
final

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) → Offset
The output of the object in the simulation at the given time.
override
velocity(double time) → Offset
The change in value of the object in the simulation at the given time.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited