Java Degree to Radian toRadians(double angleDegrees)

Here you can find the source of toRadians(double angleDegrees)

Description

Converts from degrees to radians.

License

Open Source License

Parameter

Parameter Description
angleDegrees an angle in degrees

Return

the angle in radians Copied from JTS library

Declaration

public static double toRadians(double angleDegrees) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from w  w  w  .ja  v a2s .  c om
     * Converts from degrees to radians.
     *
     * @param angleDegrees an angle in degrees
     * @return the angle in radians
     *
     * Copied from JTS library
     */
    public static double toRadians(double angleDegrees) {
        return (angleDegrees * Math.PI) / 180.0;
    }
}

Related

  1. degToRad(double degrees)
  2. degToRad(Double secondCoordinate, Double firstCoordinate)
  3. degToRad(final double deg)
  4. degToRad(final float deg)
  5. degToRad(float deg)
  6. toRadians(double degrees)
  7. toRadians(double degrees)
  8. toRadians(float degrees)