Here you can find the source of toRad(float angle)
public static float toRad(float angle)
//package com.java2s; public class Main { public static final double toRad = Math.PI / 180.0; public static float toRad(float angle) { return (float) (angle * toRad); }//w w w . j a va 2 s .co m }