mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 12:33:38 +00:00
19 lines
406 B
JavaScript
19 lines
406 B
JavaScript
var Contains = require('./Contains');
|
|
|
|
/**
|
|
* [description]
|
|
*
|
|
* @function Phaser.Geom.Rectangle.ContainsPoint
|
|
* @since 3.0.0
|
|
*
|
|
* @param {Phaser.Geom.Rectangle} rect - [description]
|
|
* @param {Phaser.Geom.Point} point - [description]
|
|
*
|
|
* @return {boolean} [description]
|
|
*/
|
|
var ContainsPoint = function (rect, point)
|
|
{
|
|
return Contains(rect, point.x, point.y);
|
|
};
|
|
|
|
module.exports = ContainsPoint;
|