Here you can find the source of degreesToRadians(float degrees)
public static float degreesToRadians(float degrees)
//package com.java2s; public class Main { public static float degreesToRadians(float degrees) { return degrees * (float) (Math.PI / 180D); }//from ww w . ja v a 2s . c om }