mirror of
https://github.com/photonstorm/phaser
synced 2025-01-20 17:14:02 +00:00
9 lines
270 B
JavaScript
9 lines
270 B
JavaScript
|
var DistanceBetween = require('../../math/distance/DistanceBetween');
|
||
|
|
||
|
var CircleVsCircle = function (circleA, circleB)
|
||
|
{
|
||
|
return (DistanceBetween(circleA.x, circleA.y, circleB.x, circleB.y) <= (circleA.radius + circleB.radius));
|
||
|
};
|
||
|
|
||
|
module.exports = CircleVsCircle;
|