Nodejs Degree to Radian Convert degToRad(angle)

Here you can find the source of degToRad(angle)

Method Source Code

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

Related

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