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