From 1f1cd6c279f93165132d332b0cac7b6292161c16 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 10 Jul 2015 15:54:39 -0700 Subject: [PATCH] Increase the simulation epsilon We don't need to compute simulations out to that many decimal places because we're working in pixels. R=chinmaygarde@google.com --- packages/newton/lib/src/utils.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/newton/lib/src/utils.dart b/packages/newton/lib/src/utils.dart index f3edfa2ca5..e6f997fe42 100644 --- a/packages/newton/lib/src/utils.dart +++ b/packages/newton/lib/src/utils.dart @@ -4,7 +4,7 @@ part of newton; -const double _simulationEpsilon = 0.01; +const double _simulationEpsilon = 0.2; bool _nearEqual(double a, double b) => (a > (b - _simulationEpsilon)) && (a < (b + _simulationEpsilon));