phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.
31 lines (28 loc) • 801 B
JavaScript
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* [description]
*
* @function Phaser.Geom.Triangle.Equals
* @since 3.0.0
*
* @param {Phaser.Geom.Triangle} triangle - [description]
* @param {Phaser.Geom.Triangle} toCompare - [description]
*
* @return {boolean} [description]
*/
var Equals = function (triangle, toCompare)
{
return (
triangle.x1 === toCompare.x1 &&
triangle.y1 === toCompare.y1 &&
triangle.x2 === toCompare.x2 &&
triangle.y2 === toCompare.y2 &&
triangle.x3 === toCompare.x3 &&
triangle.y3 === toCompare.y3
);
};
module.exports = Equals;