Here you can find the source of degToRad(double degrees)
static public double degToRad(double degrees)
//package com.java2s; //License from project: Apache License public class Main { static public double degToRad(double degrees) { return degrees * Math.PI / 180.0; }/*from ww w.j a v a 2s.co m*/ }