Here you can find the source of degToRad(double angle)
public static double degToRad(double angle)
//package com.java2s; //License from project: LGPL public class Main { public static final double PI = 3.1415926535898; public static double degToRad(double angle) { return angle * (PI / 180.0); }/*w w w .j ava2 s. co m*/ }