Java tutorial
//package com.java2s; public class Main { /** * convert degrees to radians based on ios code from: http://blog.nova-box.com/2010/05/iphone-ray-picking-glunproject-sample.html * @param deg * @return */ public static double degToRadians(float deg) { return deg / 180.0 * Math.PI; } }