X-Git-Url: http://git.scottworley.com/nt3d/blobdiff_plain/72eac64d07af484314745fd0e9466e0f94915684..08b46dbddc6defd45926a69631e3a09ea2273e45:/nt3d.js?ds=sidebyside diff --git a/nt3d.js b/nt3d.js index 0389946..7198e22 100644 --- 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; }