Converts numeric degrees to radians - Node.js Geometry

Node.js examples for Geometry:Radian

Description

Converts numeric degrees to radians

Demo Code

if(typeof(Number.prototype.toRad) === "undefined") {
  Number.prototype.toRad = function() {
    return this * Math.PI / 180;
  }/*from  w ww .  java2 s  . c om*/
}

Related Tutorials