From ad3c9f89e76b1221fb6ee096f0ad7c0c395f000c Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Sat, 12 Apr 2014 03:01:39 -0400 Subject: tree --- rect.js | 2 -- rectangles.html | 16 ++++++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/rect.js b/rect.js index 732a344..f1f19e1 100644 --- a/rect.js +++ b/rect.js @@ -122,8 +122,6 @@ rect.prototype.split = function(r){ else { // if (r.y.contains(this.y.a) && this.y.contains(r.y.b)) { y_intervals.push( new vec2( this.y.a, this.y.b )) } -if (zz) -console.log(x_intervals.length, y_intervals.length) x_intervals.forEach(function(x){ y_intervals.forEach(function(y){ diff --git a/rectangles.html b/rectangles.html index a68b4c6..71f83c6 100644 --- a/rectangles.html +++ b/rectangles.html @@ -18,24 +18,29 @@ body > div { - +
+