phaser/src/geom/line/Equals.js

23 lines
459 B
JavaScript
Raw Normal View History

2017-10-13 13:11:54 +00:00
/**
* [description]
*
* @function Phaser.Geom.Line.Equals
* @since 3.0.0
*
* @param {Phaser.Geom.Line} line - [description]
* @param {Phaser.Geom.Line} toCompare - [description]
*
* @return {boolean} [description]
*/
var Equals = function (line, toCompare)
{
return (
line.x1 === toCompare.x1 &&
line.y1 === toCompare.y1 &&
line.x2 === toCompare.x2 &&
line.y2 === toCompare.y2
);
};
module.exports = Equals;