Nodejs Degree to Radian Convert degToRad(degrees)

Here you can find the source of degToRad(degrees)

Method Source Code

Math.degToRad = function(degrees){
   return degrees * Math.PI / 180;
};

Related

  1. degToRad(angle)
    function degToRad(angle) {
      return ((angle * Math.PI) / 180);
    
  2. degToRad(deg)
    function degToRad(deg) {
      return deg * Math.PI / 180;
    
  3. toRadians(degrees)
    Math.toRadians = function(degrees){
      if (degrees < 0) {
        degrees += 360;
      return degrees / 180 * Math.PI;
    };
    
  4. degrees(radians)
    Math.degrees = function(radians){
      return radians * 180 / Math.PI;
    };
    
  5. radians(degrees)
    Math.radians = function(degrees){
      return degrees * Math.PI / 180;
    };
    
  6. toRad()
    Number.prototype.toRad = function() {
      return this * Math.PI / 180;
    
  7. toRad()
    Number.prototype.toRad = function() {
      return this * Math.PI / 180;
    Number.prototype.toDeg = function() {
      return this * 180 / Math.PI;
    
  8. toRad()
    Number.prototype.toRad = function() {
      return this * Math.PI / 180;
    };
    Number.prototype.toDegree = function() {
      return this / Math.PI * 180;
    };
    
  9. toRad()
    Number.prototype.toRad = function() { 
      return this * Math.PI / 180; 
    };
    Number.prototype.toDeg = function() { 
      return this * 180 / Math.PI; 
    };
    global.getPointAtDistance = function(lat, lon, brng, dist) {
      dist = dist / 6371000;
      brng = brng.toRad();
    ...