Java Degree to Radian degreesToRadians(float angleDegs)

Here you can find the source of degreesToRadians(float angleDegs)

Description

Convert an angle from degrees to radians.

License

Open Source License

Parameter

Parameter Description
angleDegs The angle in degrees.

Return

The converted angle in radians.

Declaration

public static float degreesToRadians(float angleDegs) 

Method Source Code

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

public class Main {
    private static final float DEGS_TO_RADS = (float) Math.PI / 180.0f;

    /**//from w w w. j a v a2  s .co  m
     * Convert an angle from degrees to radians.
     * 
     * @param   angleDegs   The angle in degrees.
     * @return            The converted angle in radians.
     */
    public static float degreesToRadians(float angleDegs) {
        return angleDegs * DEGS_TO_RADS;
    }
}

Related

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