mirror of
https://github.com/photonstorm/phaser
synced 2025-01-03 00:38:46 +00:00
13 lines
330 B
JavaScript
13 lines
330 B
JavaScript
var Contains = require('./Contains');
|
|
|
|
var ContainsRect = function (circle, rect)
|
|
{
|
|
return (
|
|
Contains(circle, rect.x, rect.y) &&
|
|
Contains(circle, rect.right, rect.y) &&
|
|
Contains(circle, rect.x, rect.bottom) &&
|
|
Contains(circle, rect.right, rect.bottom)
|
|
);
|
|
};
|
|
|
|
module.exports = ContainsRect;
|