Java Degree to Radian degToRad(float deg)

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

Description

deg To Rad

License

Open Source License

Declaration

public static float degToRad(float deg) 

Method Source Code

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

public class Main {
    public static final float DEG_TO_RAD = (float) (Math.PI / 180);

    public static float degToRad(float deg) {
        return deg * DEG_TO_RAD;
    }/*from   w  w w.  j a v a2  s .  c  o  m*/
}

Related

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