UNPKG

arcade-physics

Version:
20 lines 760 B
export default Contains; /** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Checks if a point (as a pair of coordinates) is inside a Triangle's bounds. * * @function Phaser.Geom.Triangle.Contains * @since 3.0.0 * * @param {Phaser.Geom.Triangle} triangle - The Triangle to check. * @param {number} x - The X coordinate of the point to check. * @param {number} y - The Y coordinate of the point to check. * * @return {boolean} `true` if the point is inside the Triangle, otherwise `false`. */ declare function Contains(triangle: Phaser.Geom.Triangle, x: number, y: number): boolean; //# sourceMappingURL=Contains.d.ts.map