aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-18 21:35:12 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-18 21:35:12 -0500
commita4279d86918c0ec47300b00df2a3fd06e77aab30 (patch)
treefeaaa4c1a87ace985e71e67551dc83e1f569f19b
parent52d5b44da77f381c7ecf2137f86ae7d523142733 (diff)
rectintersect typo for embarassingly long time
-rw-r--r--utils/rectintersect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rectintersect.js b/utils/rectintersect.js
index bd2c479..9aaa38a 100644
--- a/utils/rectintersect.js
+++ b/utils/rectintersect.js
@@ -4,6 +4,6 @@ module.exports = function(one, two){ // Rectangles defined by min/max pairs of y
if ( one[0][0] > two[1][0] ||
two[0][0] > one[1][0] ||
one[0][1] > two[1][1] ||
- two[0][1] > two[1][1] ) return false;
+ two[0][1] > one[1][1] ) return false;
return true;
}