Java Radian to Degree toDegrees(float radians)

Here you can find the source of toDegrees(float radians)

Description

Converts radians to degrees.

License

Open Source License

Parameter

Parameter Description
radians The angle in radians.

Return

The angle in degrees.

Declaration

public static float toDegrees(float radians) 

Method Source Code

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

public class Main {
    /**//from w  w w .  j  a va2s  . com
     * Converts radians to degrees.
     * 
     * <p>
     * This method uses double precision internally, though it returns single float. Factor = 180 /
     * pi.
     * 
     * @param radians
     *        The angle in radians.
     * @return The angle in degrees.
     */
    public static float toDegrees(float radians) {
        return (float) (radians * 57.295779513082320876798154814105);
    }
}

Related

  1. radiansToDegrees(float angleRads)
  2. radiansToDegrees(float radians)
  3. radianToDegree(double angleRad)
  4. radianToDegrees(float angle)
  5. toDegrees(Double rad)
  6. toDegrees(float radians)