Here you can find the source of sinDeg(double degrees)
public static double sinDeg(double degrees)
//package com.java2s; //License from project: GNU General Public License public class Main { private static final double SIN_TABLE_LENGTH_OVER_360 = 65536d / 360d; /** Pre-calculated Sin values in degrees. */ private static double[] SIN_TABLE_DEG = new double[65536]; public static double sinDeg(double degrees) { return SIN_TABLE_DEG[(int) (degrees * SIN_TABLE_LENGTH_OVER_360) & 65535]; }/*from w ww . j a v a2 s . co m*/ }