Nodejs Degree to Radian Convert degToRad(deg)

Here you can find the source of degToRad(deg)

Method Source Code

// Degree to Radian
function degToRad(deg) {
   return deg * Math.PI / 180;
}

Related

  1. deg2Rad(deg)
    Math.deg2Rad = function(deg)
      return (deg / 180) * Math.PI;
    
  2. degToRad(angle)
    function degToRad(angle) {
      return ((angle * 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. degToRad(degrees)
    Math.degToRad = function(degrees){
      return degrees * Math.PI / 180;
    };