From 6a39854726c511f3df0b4aff619ecac1943c993c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 24 Apr 2014 18:52:55 -0400 Subject: trying to add a slight margin to the walls --- assets/javascripts/rectangles/models/rect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets/javascripts/rectangles/models/rect.js') diff --git a/assets/javascripts/rectangles/models/rect.js b/assets/javascripts/rectangles/models/rect.js index 51162c0..0664693 100644 --- a/assets/javascripts/rectangles/models/rect.js +++ b/assets/javascripts/rectangles/models/rect.js @@ -59,7 +59,7 @@ window.rect = (function(){ return this.x.contains(x) && this.y.contains(y) } rect.prototype.containsDisc = function(x,y,r){ - return this.x.contains(x,r) && this.y.contains(y,r) + return this.x.containsDisc(x,r) && this.y.containsDisc(y,r) } rect.prototype.intersects = function(r){ return this.x.intersects(r.x) && this.y.intersects(r.y) -- cgit v1.2.3-70-g09d2