Added set function to Point
This commit is contained in:
parent
ac84d62ef1
commit
7303d00d66
1 changed files with 6 additions and 0 deletions
|
@ -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 ;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue