]> git.scottworley.com Git - nt3d/blobdiff - nt3d.js
Increase the skip-rotation epsilon
[nt3d] / nt3d.js
diff --git a/nt3d.js b/nt3d.js
index 038994678f9328de72fca780f4a8b639a58e915b..7198e22cf2482d9e8f8ef4029b8b967f2698a599 100644 (file)
--- a/nt3d.js
+++ b/nt3d.js
@@ -288,8 +288,8 @@ nt3d = {
                // by crossing a and b to get a rotation axis and using
                // angle_between to get a rotation angle.
                var angle = this.angle_between(this.unit(a), this.unit(b));
-               if (Math.abs(angle) < 1e-15) {
-                       // No siginificant rotation to perform.  Bail to avoid
+               if (Math.abs(angle) < 1e-7) {
+                       // No significant rotation to perform.  Bail to avoid
                        // NaNs and numerical error
                        return points;
                }