public override bool isDone(double time) { return(PhysicsUtils.nearZero(this._solution.x(time), this.tolerance.distance) && PhysicsUtils.nearZero(this._solution.dx(time), this.tolerance.velocity)); }
public override bool isDone(float time) { return(PhysicsUtils.nearZero(_solution.x(time), tolerance.distance) && PhysicsUtils.nearZero(_solution.dx(time), tolerance.velocity)); }