diff options
Diffstat (limited to 'assets/javascripts/rectangles/rect.js')
| -rw-r--r-- | assets/javascripts/rectangles/rect.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/javascripts/rectangles/rect.js b/assets/javascripts/rectangles/rect.js index 3c6eedc..a539b74 100644 --- a/assets/javascripts/rectangles/rect.js +++ b/assets/javascripts/rectangles/rect.js @@ -28,7 +28,7 @@ window.rect = (function(){ rect.prototype.area = function(){ return this.x.length() * this.y.length() } - rect.prototype.normalize = function(){ + rect.prototype.translate = function(){ this.x.abs().add(this.translation.a) this.y.abs().add(this.translation.b) this.translation.a = this.translation.b = 0 |
