Package curve.u
Class Trig
java.lang.Object
curve.u.Trig
-
Field Details
-
sinTable
private static double[] sinTablelookup table -
cosTable
private static double[] cosTablelookup table
-
-
Constructor Details
-
Trig
public Trig()default constructor - not used
-
-
Method Details
-
sin
public static double sin(int degree) get sin(degree)- Parameters:
degree
- -- Returns:
- sin(degree)
-
cos
public static double cos(int degree) get cos(degree)- Parameters:
degree
- -- Returns:
- cos(degree)
-
getCosTable
private static double[] getCosTable()get cos table- Returns:
- cos table array
-
getSinTable
private static double[] getSinTable()get sine table- Returns:
- sine table array
-
main
-