Here you can find the source of degToRad(float deg)
public static float degToRad(float deg)
//package com.java2s; //License from project: Open Source License public class Main { public static final float DEG_TO_RAD = (float) (Math.PI / 180); public static float degToRad(float deg) { return deg * DEG_TO_RAD; }/*from w w w. j a v a2 s . c o m*/ }