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

16 lines
344 B
JavaScript
Raw Normal View History

/**
* [description]
*
* @function Phaser.Geom.Circle.Circumference
* @since 3.0.0
*
* @param {Phaser.Geom.Circle} circle - The Circle to get the circumference of.
* @return {number} The circumference of the Circle.
*/
2016-12-29 00:17:20 +00:00
var Circumference = function (circle)
{
return 2 * (Math.PI * circle.radius);
};
module.exports = Circumference;