Here you can find the source of degrees(double d)
private static double degrees(double d)
//package com.java2s; //License from project: Open Source License public class Main { private static double degrees(double d) { return d * (180 / Math.PI); }// w w w . j av a 2 s.co m }