Java Degree to Radian degToRad(double deg)

Here you can find the source of degToRad(double deg)

Description

Converts degrees into radiant

License

Open Source License

Parameter

Parameter Description
deg a parameter

Declaration

public static double degToRad(double deg) 

Method Source Code

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

public class Main {
    /**//w  w  w. j  a va  2s  .  com
     * Converts degrees into radiant
     * @param deg
     * @return
     */
    public static double degToRad(double deg) {
        return deg * Math.PI / 180;
    }
}

Related

  1. DegreesToRad(double degrees)
  2. degreesToRadians(double degrees)
  3. degreesToRadians(float angleDegs)
  4. degreesToRadians(float degrees)
  5. degToRad(double angle)
  6. degToRad(double degrees)
  7. degToRad(Double secondCoordinate, Double firstCoordinate)
  8. degToRad(final double deg)
  9. degToRad(final float deg)