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