Java Degree to Radian deg2Rad(float degree)

Here you can find the source of deg2Rad(float degree)

Description

Wandelt Grad in Radians um

License

Open Source License

Parameter

Parameter Description
degree Der Winkel in Grad

Return

Der Winkel in Radians

Declaration

public static float deg2Rad(float degree) 

Method Source Code

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

public class Main {
    /**//w w  w. j  a  v a2  s .  co m
     * Wandelt Grad in Radians um
     */
    public static final float DEG_TO_RAD = (float) (Math.PI / 180f);

    /**
     * Wandelt Grad in Radians um
     *
     * @param degree Der Winkel in Grad
     * @return Der Winkel in Radians
     */
    public static float deg2Rad(float degree) {
        return DEG_TO_RAD * degree;
    }
}

Related

  1. deg2Rad(double angle)
  2. deg2rad(double deg)
  3. deg2rad(double deg)
  4. degrees2Radians(double degrees)
  5. degrees2Radians(final double deg)
  6. DegreesToRad(double degrees)
  7. degreesToRadians(double degrees)