UNPKG

arcade-physics

Version:
23 lines 778 B
"use strict"; /** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ Object.defineProperty(exports, "__esModule", { value: true }); /** * 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. */ const Equals = (point, toCompare) => { return point.x === toCompare.x && point.y === toCompare.y; }; exports.default = Equals; //# sourceMappingURL=Equals.js.map