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