Javascript Math toRadians(degrees)

Description

Javascript Math toRadians(degrees)


Math.toRadians = function(degrees){
  if (degrees < 0) {
    degrees += 360;/*from w  w  w .  java2 s.c o m*/
  }
  return degrees / 180 * Math.PI;
};



PreviousNext

Related