ClampedSimulation constructor Null safety
- Simulation simulation,
- {double xMin = double.negativeInfinity,
- double xMax = double.infinity,
- double dxMin = double.negativeInfinity,
- double dxMax = double.infinity}
Creates a ClampedSimulation that clamps the given simulation.
The named arguments specify the ranges for the clamping behavior, as applied to x and dx.
Implementation
ClampedSimulation(
this.simulation, {
this.xMin = double.negativeInfinity,
this.xMax = double.infinity,
this.dxMin = double.negativeInfinity,
this.dxMax = double.infinity,
}) : assert(simulation != null),
assert(xMax >= xMin),
assert(dxMax >= dxMin);