summaryrefslogtreecommitdiff
path: root/rect.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-04-15 20:13:49 -0400
committerJulie Lala <jules@okfoc.us>2014-04-15 20:13:49 -0400
commit28da2a26238ff76f87f4e086a9832a5478c35b23 (patch)
tree39cfb3f33fb5100234397baecb9037c26daa7fe3 /rect.js
parent2fdd2f4ee268b8d159e57a91bb0dbf977f6fecef (diff)
nomenclature
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