public final class LUT2
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static boolean |
initialized |
static java.lang.String |
message |
static float |
RAD |
static float |
RAD4 |
(package private) static float[] |
sinLUT
LUT for sine values 0.25 degree increments of first quadrant
|
static float |
TAU |
Constructor and Description |
---|
LUT2() |
Modifier and Type | Method and Description |
---|---|
static float |
cos(float thet)
Look up cos for the passed angle in degrees, fixed precision, no better
than 0.25 degree with some scope for errors.
|
static float |
cosLut(float thet)
Look up cos for the passed angle in radians, fixed precision, no better
than 0.25 degree with some scope for errors.
|
static void |
initialize()
Initialise sin table with values (first quadrant only)
Save a bit of space by storing as float
|
static float |
sin(float thet)
Look up sine for the passed angle in degrees.
|
static float |
sinLut(float thet)
Look up sine for the passed angle in radians.
|
static final float[] sinLUT
public static final java.lang.String message
private static boolean initialized
public static final float RAD
public static final float RAD4
public static final float TAU
public static void initialize()
public static float sin(float thet)
thet
- degree intpublic static float cos(float thet)
thet
- degree floatpublic static float sinLut(float thet)
thet
- radians floatpublic static float cosLut(float thet)
thet
- radians float