Code coverage report for src/pixi/core/Point.js

Statements: 83.33% (5 / 6)      Branches: 100% (4 / 4)      Functions: 50% (1 / 2)      Lines: 83.33% (5 / 6)     

All files » src/pixi/core\ » Point.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44                        1             43             43                 1           1    
/**
 * @author Mat Groves http://matgroves.com/ @Doormat23
 */
 
/**
 * The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.
 *
 * @class Point
 * @constructor
 * @param x {Number} position of the point
 * @param y {Number} position of the point
 */
PIXI.Point = function(x, y)
{
    /**
     * @property x
     * @type Number
     * @default 0
     */
    this.x = x || 0;
 
    /**
     * @property y
     * @type Number
     * @default 0
     */
    this.y = y || 0;
};
 
/**
 * Creates a clone of this point
 *
 * @method clone
 * @return {Point} a copy of the point
 */
PIXI.Point.prototype.clone = function()
{
    return new PIXI.Point(this.x, this.y);
};
 
// constructor
PIXI.Point.prototype.constructor = PIXI.Point;