Here you can find the source of toDegrees(float radians)
Parameter | Description |
---|---|
radians | The angle in radians. |
public static float toDegrees(float radians)
//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); } }