2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2018 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
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]
|
|
|
|
*/
|
2017-01-05 00:20:11 +00:00
|
|
|
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;
|