UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

24 lines (21 loc) 674 B
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @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); }; module.exports = Equals;