phaser/v3/typings/geom/polygon/Contains.d.ts
2017-01-16 22:43:07 +01:00

9 lines
392 B
TypeScript

/**
* Checks whether the x and y coordinates are contained within this polygon.
*
* @method Phaser.Polygon#contains
* @param {number} x - The X value of the coordinate to test.
* @param {number} y - The Y value of the coordinate to test.
* @return {boolean} True if the coordinates are within this polygon, otherwise false.
*/
export default function (polygon: any, x: any, y: any): boolean;