diff options
Diffstat (limited to 'vec2.js')
| -rw-r--r-- | vec2.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ vec2.prototype.length = function(){ vec2.prototype.clone = function(){ return new vec2(this.a, this.b) } -vec2.prototype.normalize = function(){ +vec2.prototype.abs = function(){ if (this.b < this.a) { this.a = this.a ^ this.b this.b = this.a ^ this.b |
