Alpha version

This commit is contained in:
Mat Groves 2013-01-21 22:45:40 +00:00
parent b84c8c8175
commit 7a977ace5c
42 changed files with 3882 additions and 3 deletions

29
src/pixi/Point.js Normal file
View file

@ -0,0 +1,29 @@
/**
* @author Mat Groves http://matgroves.com/
*/
var PIXI = PIXI || {};
/**
* @class The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.
* @constructor
* @param x position of the point
* @param y position of the point
* @return A new Rectangle.
*/
PIXI.Point = function(x, y)
{
this.x = x ? x : 0;
this.y = y ? y : 0;
}
/**
* @return a copy of the point
*/
PIXI.Point.clone = function()
{
return new PIXI.Point(this.x, this.y);
}
// constructor
PIXI.Point.constructor = PIXI.Point;