public final class LUT
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static boolean |
initialized |
static java.lang.String |
message
Message to display on console processing ide
|
(package private) static float[] |
sinLUT
Lookup table for degree cosine/sine, has a fixed precision 1.0 degrees
|
static float |
TO_RADIANS |
Constructor and Description |
---|
LUT() |
Modifier and Type | Method and Description |
---|---|
static float |
cos(float thet)
Look up cos for the passed angle in degrees.
|
static float |
cos(int thet)
Look up cos for the passed angle in degrees.
|
static void |
initialize()
Initialise sin table with values (first quadrant only)
|
static float |
sin(float thet)
Look up sin for the passed angle in degrees.
|
static float |
sin(int thet)
Look up sine for the passed angle in degrees.
|
static final float[] sinLUT
public static final float TO_RADIANS
private static boolean initialized
public static final java.lang.String message
public static void initialize()
public static float sin(int thet)
thet
- degree intpublic static float sin(float thet)
thet
- degree floatpublic static float cos(int thet)
thet
- degree intpublic static float cos(float thet)
thet
- degree float