arcade-physics
Version:
Use Arcade Physics without Phaser.
14 lines • 610 B
TypeScript
export default ContainsPoint;
/**
* Tests if a triangle contains a point.
*
* @function Phaser.Geom.Triangle.ContainsPoint
* @since 3.0.0
*
* @param {Phaser.Geom.Triangle} triangle - The triangle.
* @param {(Phaser.Geom.Point|Phaser.Math.Vector2|any)} point - The point to test, or any point-like object with public `x` and `y` properties.
*
* @return {boolean} `true` if the point is within the triangle, otherwise `false`.
*/
declare function ContainsPoint(triangle: Phaser.Geom.Triangle, point: (Phaser.Geom.Point | Phaser.Math.Vector2 | any)): boolean;
//# sourceMappingURL=ContainsPoint.d.ts.map