Add radian conversion to numbers - Node.js Geometry

Node.js examples for Geometry:Radian

Description

Add radian conversion to numbers

Demo Code

if (typeof(Number.prototype.toRad) === "undefined") {
    Number.prototype.toRad = function() {
        return this * Math.PI / 180;
    }/*from   w ww  .j av  a  2 s  . co  m*/
}

Related Tutorials