mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 09:03:29 +00:00
9 lines
392 B
TypeScript
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;
|