phaser/src/geom/ellipse/Equals.js

23 lines
496 B
JavaScript
Raw Normal View History

2017-10-13 13:11:54 +00:00
/**
* [description]
*
* @function Phaser.Geom.Ellipse.Equals
* @since 3.0.0
*
* @param {Phaser.Geom.Ellipse} ellipse - [description]
* @param {Phaser.Geom.Ellipse} toCompare - [description]
*
* @return {boolean} [description]
*/
2017-01-02 00:47:16 +00:00
var Equals = function (ellipse, toCompare)
{
return (
ellipse.x === toCompare.x &&
ellipse.y === toCompare.y &&
ellipse.width === toCompare.width &&
ellipse.height === toCompare.height
);
};
module.exports = Equals;