diff options
Diffstat (limited to 'js/helper-classes/3D/math-utils.js')
-rwxr-xr-x | js/helper-classes/3D/math-utils.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/helper-classes/3D/math-utils.js b/js/helper-classes/3D/math-utils.js index 3c981d0d..191b02bd 100755 --- a/js/helper-classes/3D/math-utils.js +++ b/js/helper-classes/3D/math-utils.js | |||
@@ -41,7 +41,7 @@ var MathUtilsClass = exports.MathUtilsClass = Object.create(Object.prototype, { | |||
41 | // Instance variables | 41 | // Instance variables |
42 | /////////////////////////////////////////////////////////////////////// | 42 | /////////////////////////////////////////////////////////////////////// |
43 | // VecUtils: { value: null, writable: true }, | 43 | // VecUtils: { value: null, writable: true }, |
44 | 44 | ||
45 | EPSILON: { value: 1.e-5, writable: true }, | 45 | EPSILON: { value: 1.e-5, writable: true }, |
46 | 46 | ||
47 | // these are used in containment tests | 47 | // these are used in containment tests |
@@ -616,7 +616,7 @@ var MathUtilsClass = exports.MathUtilsClass = Object.create(Object.prototype, { | |||
616 | // test 1. Overall bounding box test | 616 | // test 1. Overall bounding box test |
617 | if ((xMaxElt < xMin) || (xMinElt > xMax) || (yMaxElt < yMin) || (yMinElt > yMax)) | 617 | if ((xMaxElt < xMin) || (xMinElt > xMax) || (yMaxElt < yMin) || (yMinElt > yMax)) |
618 | return false; | 618 | return false; |
619 | 619 | ||
620 | // test 2. See if any of the corners of the element are contained in the rectangle | 620 | // test 2. See if any of the corners of the element are contained in the rectangle |
621 | var rect = Object.create(Rectangle, {}); | 621 | var rect = Object.create(Rectangle, {}); |
622 | rect.set( pt[0], pt[1], width, height ); | 622 | rect.set( pt[0], pt[1], width, height ); |
@@ -939,7 +939,7 @@ var MathUtilsClass = exports.MathUtilsClass = Object.create(Object.prototype, { | |||
939 | }, | 939 | }, |
940 | 940 | ||
941 | /////////////////////////////////////////////////////////////////////// | 941 | /////////////////////////////////////////////////////////////////////// |
942 | // Utility method to calculate angle between two 3D vectors | 942 | // Utility method to calculate angle between two 3D vectors |
943 | /////////////////////////////////////////////////////////////////////// | 943 | /////////////////////////////////////////////////////////////////////// |
944 | getAxisAngleBetween3DVectors: { | 944 | getAxisAngleBetween3DVectors: { |
945 | value: function (vec1, vec2, axis) { | 945 | value: function (vec1, vec2, axis) { |