Here you can find the source of toDegree(double angle)
public static float toDegree(double angle)
//package com.java2s; //License from project: Apache License public class Main { public static float toDegree(double angle) { return (float) Math.toDegrees(angle); }/*from w ww. j av a 2 s .c o m*/ }