commit
14aea1afe6
|
@ -523,7 +523,7 @@ Vector.prototype.multiply = function(n)
|
|||
|
||||
Vector.prototype.divide = function(n)
|
||||
{
|
||||
return new Vector(this.x / n, this.y / n);
|
||||
return new Vector((this.x / n) || 0, (this.y / n) || 0);
|
||||
};
|
||||
|
||||
Vector.prototype.magnitude = function()
|
||||
|
|
Loading…
Reference in New Issue
Block a user