summaryrefslogtreecommitdiff
path: root/rect.js
diff options
context:
space:
mode:
Diffstat (limited to 'rect.js')
-rw-r--r--rect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rect.js b/rect.js
index f1f19e1..94a537b 100644
--- a/rect.js
+++ b/rect.js
@@ -22,7 +22,7 @@ rect.prototype.center = 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