phaser/v3/src/geom/circle/Area.js
2016-12-29 00:17:20 +00:00

6 lines
136 B
JavaScript

var Area = function (circle)
{
return (circle.radius > 0) ? Math.PI * circle.radius * circle.radius : 0;
};
module.exports = Area;