Skip to content

Commit

Permalink
fixing typo in normalize declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
willbailey committed Aug 31, 2011
1 parent fd3f65a commit b36344c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vector.coffee
Expand Up @@ -44,7 +44,7 @@ class Vector
@y *= v.y
@z *= v.z

normalize ->
normalize: ->
m = @mag()
@div m if m > 0

Expand Down
4 changes: 2 additions & 2 deletions vector.js
Expand Up @@ -56,13 +56,13 @@
this.y *= v.y;
return this.z *= v.z;
};
normalize(function() {
Vector.prototype.normalize = function() {
var m;
m = this.mag();
if (m > 0) {
return this.div(m);
}
});
};
Vector.prototype.set = function(x, y, z) {
var _ref;
return _ref = [x, y, z], this.x = _ref[0], this.y = _ref[1], this.z = _ref[2], _ref;
Expand Down

0 comments on commit b36344c

Please sign in to comment.