UNPKG

phaser4-rex-plugins

Version:
24 lines (21 loc) 695 B
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * A comparison of two `Point` objects to see if they are equal. * * @function Phaser.Geom.Point.Equals * @since 3.0.0 * * @param {Phaser.Geom.Point} point - The original `Point` to compare against. * @param {Phaser.Geom.Point} toCompare - The second `Point` to compare. * * @return {boolean} Returns true if the both `Point` objects are equal. */ var Equals = function (point, toCompare) { return (point.x === toCompare.x && point.y === toCompare.y); }; export default Equals;