Here you can find the source of toDegrees(float rad)
public static float toDegrees(float rad)
//package com.java2s; public class Main { /**/*from ww w . ja v a2 s .c om*/ * Convert Radians to Degrees. */ public static final float TO_DEGREES = 57.2957795f; /** * Returns the given radians to degrees */ public static float toDegrees(float rad) { return rad * TO_DEGREES; } }