EPSILON is too small

This commit is contained in:
2youyouo2
2015-12-23 18:31:17 +08:00
parent e2c6c356d0
commit b07e888aad
+1 -2
View File
@@ -240,8 +240,7 @@ function sampleMotionPaths (motionPaths, data, duration, fps) {
// ensure every ratio section's length is the same
var startRatioOffset = 0;
// from es6 Number.EPSILON
var EPSILON = 2.220446049250313e-16;
var EPSILON = 1e-6;
// do not need to compute last path
for (var i = 0, l = motionPaths.length; i < l-1; i++) {