Java Degree to Radian degreesToRadians(double degrees)

Here you can find the source of degreesToRadians(double degrees)

Description

Converts degrees to radians.

License

Open Source License

Parameter

Parameter Description
degrees a parameter

Return

radians

Declaration

public static double degreesToRadians(double degrees) 

Method Source Code

//package com.java2s;

public class Main {
    public static final double PI_OVER_180 = Math.PI / 180.d;

    /**/* w  w w .j a v  a2s .  c o m*/
     * Converts degrees to radians.
     * 
     * @param degrees
     * @return radians
     */
    public static double degreesToRadians(double degrees) {
        return degrees * PI_OVER_180;
    }
}

Related

  1. deg2rad(double deg)
  2. deg2Rad(float degree)
  3. degrees2Radians(double degrees)
  4. degrees2Radians(final double deg)
  5. DegreesToRad(double degrees)
  6. degreesToRadians(float angleDegs)
  7. degreesToRadians(float degrees)
  8. degToRad(double angle)
  9. degToRad(double deg)