Here you can find the source of toDegrees(float angle)
public static float toDegrees(float angle)
//package com.java2s; //License from project: Open Source License public class Main { public static float toDegrees(float angle) { return (float) 180 / (float) Math.PI * angle; }/*from w w w .java 2 s . c o m*/ }