mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 20:13:35 +00:00
14 lines
335 B
JavaScript
14 lines
335 B
JavaScript
|
var Contains = require('./Contains');
|
||
|
|
||
|
var ContainsRect = function (ellipse, rect)
|
||
|
{
|
||
|
return (
|
||
|
Contains(ellipse, rect.x, rect.y) &&
|
||
|
Contains(ellipse, rect.right, rect.y) &&
|
||
|
Contains(ellipse, rect.x, rect.bottom) &&
|
||
|
Contains(ellipse, rect.right, rect.bottom)
|
||
|
);
|
||
|
};
|
||
|
|
||
|
module.exports = ContainsRect;
|