phaser/v3/typings/geom/polygon/ContainsPoint.d.ts

10 lines
388 B
TypeScript
Raw Normal View History

2017-01-16 21:43:07 +00:00
/**
* 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, point: any): boolean;