Java Radian to Degree toDegrees(float radians)

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

Description

to Degrees

License

Open Source License

Declaration

public static float toDegrees(float radians) 

Method Source Code

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

public class Main {
    public static final double TAU = 2 * Math.PI;

    public static float toDegrees(float radians) {
        return (float) (radians * 360 / TAU);
    }// w w  w.  j a v  a2s .  c  o m

    public static double toDegrees(double radians) {
        return (radians * 360 / TAU);
    }
}

Related

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