Java Radian to Degree radiansToDegrees(float angleRads)

Here you can find the source of radiansToDegrees(float angleRads)

Description

Convert an radians to degrees.

License

Open Source License

Parameter

Parameter Description
angleRads The angle in radians.

Return

The converted angle in degrees.

Declaration

public static float radiansToDegrees(float angleRads) 

Method Source Code

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

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

    /**//from  w w w.j  ava 2s  .c o  m
     * Convert an radians to degrees.
     * 
     * @param   angleRads   The angle in radians.
     * @return            The converted angle in degrees.
     */
    public static float radiansToDegrees(float angleRads) {
        return angleRads * RADS_TO_DEGS;
    }
}

Related

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