phaser/v3/src/geom/circle/Area.js

7 lines
136 B
JavaScript
Raw Normal View History

2016-12-29 00:17:20 +00:00
var Area = function (circle)
{
return (circle.radius > 0) ? Math.PI * circle.radius * circle.radius : 0;
};
module.exports = Area;