Creates a ClampedSimulation that clamps the given simulation.
The named arguments specify the ranges for the clamping behavior, as applied to x and dx.
Source
ClampedSimulation(this.simulation, {
this.xMin: double.NEGATIVE_INFINITY,
this.xMax: double.INFINITY,
this.dxMin: double.NEGATIVE_INFINITY,
this.dxMax: double.INFINITY
}) {
assert(simulation != null);
assert(xMax >= xMin);
assert(dxMax >= dxMin);
}