A FrictionSimulation that clamps the modeled particle to a specific range of values.

Inheritance

Constructors

BoundedFrictionSimulation(double drag, double position, double velocity, double _minX, double _maxX)

Creates a BoundedFrictionSimulation with the given arguments, namely: the fluid drag coefficient, a unitless value; the initial position, in the same length units as used for x; the initial velocity, in the same velocity units as used for dx, the minimum value for the position, and the maximum value for the position. The minimum and maximum values must be in the same units as the initial position, and the initial position must be within the given range.

Properties

hashCode int

Get a 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

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

isDone(double time) bool

Whether the simulation is "done" at the given time.

x(double time) double

The position of the object in the simulation at the given time.

dx(double time) double

The velocity of the object in the simulation at the given time.

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited