Added set function to Point

This commit is contained in:
Mat Groves 2014-01-16 00:59:02 +00:00
parent ac84d62ef1
commit 7303d00d66

View file

@ -41,3 +41,9 @@ PIXI.Point.prototype.clone = function()
// constructor
PIXI.Point.prototype.constructor = PIXI.Point;
PIXI.Point.prototype.set = function(x, y)
{
this.x = x || 0;
this.y = y || (y !== 0) ? x : 0 ;
};