arcade-physics
Version:
Use Arcade Physics without Phaser.
24 lines • 895 B
JavaScript
;
/**
* @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 });
/**
* Compares the `x`, `y` and `radius` properties of the two given Circles.
* Returns `true` if they all match, otherwise returns `false`.
*
* @function Phaser.Geom.Circle.Equals
* @since 3.0.0
*
* @param {Phaser.Geom.Circle} circle - The first Circle to compare.
* @param {Phaser.Geom.Circle} toCompare - The second Circle to compare.
*
* @return {boolean} `true` if the two Circles equal each other, otherwise `false`.
*/
const Equals = (circle, toCompare) => {
return circle.x === toCompare.x && circle.y === toCompare.y && circle.radius === toCompare.radius;
};
exports.default = Equals;
//# sourceMappingURL=Equals.js.map