The lookup table for the inverse cosine function. The table stores precalculated values of the inverse cosine function for specific angles. The values are in fixed-point format with a precision of 16 bits. More...
Static Public Member Functions | |
static void | GenerateTables (string directoryPath) |
Generate lookup tables in directoryPath . More... | |
static void | Init (LutProvider lutProvider) |
Initialize LUT using lutProvider . The provider needs to be able to load following paths: More... | |
static void | Init (string directoryPath) |
Initialize LUT from directory directoryPath . The directory needs to have following files: More... | |
Static Public Attributes | |
static long[] | acos_lut |
A lookup table used for approximately calculating the inverse cosine (acos) function for fixed-point numbers. More... | |
static long[] | asin_lut |
Lookup table for the arcsine function. More... | |
static long[] | atan_lut |
Lookup table for the Atan function in FPMath More... | |
static long[] | exp_integral_lut |
Lookup table for the exp function. More... | |
static uint[] | log2_approx_lut |
Lookup table for the log2 function. More... | |
const long | ONE = 1 << PRECISION |
The value of one in fixed-point format. More... | |
const long | PI = 205887L |
The value of PI in fixed-point format. More... | |
const long | PIOVER2 = (PI >> 1) + 1 |
The value of PI divided by 2 in fixed-point format. More... | |
const long | PITIMES2 = PI << 1 |
The value of PI times 2 in fixed-point format. More... | |
const int | PRECISION = 16 |
The number of bits used for the fractional part of the fixed-point numbers. More... | |
static long[] | sin_cos_lut |
Lookup table for the sine and cosine functions. More... | |
static int[] | sqrt_aprox_lut |
Lookup table for approximate square root values. More... | |
static long[] | tan_lut |
Lookup table for the tangent function. More... | |
Properties | |
static Boolean | IsLoaded [get] |
Returns true if the lookup tables have been loaded. More... | |
The lookup table for the inverse cosine function. The table stores precalculated values of the inverse cosine function for specific angles. The values are in fixed-point format with a precision of 16 bits.
|
inlinestatic |
Initialize LUT from directory directoryPath . The directory needs to have following files:
directoryPath |
|
inlinestatic |
Initialize LUT using lutProvider . The provider needs to be able to load following paths:
lutProvider |
|
inlinestatic |
Generate lookup tables in directoryPath .
directoryPath |
|
static |
The number of bits used for the fractional part of the fixed-point numbers.
|
static |
The value of PI in fixed-point format.
|
static |
The value of PI times 2 in fixed-point format.
|
static |
The value of PI divided by 2 in fixed-point format.
|
static |
The value of one in fixed-point format.
|
static |
Lookup table for approximate square root values.
|
static |
Lookup table for the arcsine function.
|
static |
A lookup table used for approximately calculating the inverse cosine (acos) function for fixed-point numbers.
|
static |
Lookup table for the Atan function in FPMath
|
static |
Lookup table for the sine and cosine functions.
|
static |
Lookup table for the tangent function.
|
static |
Lookup table for the log2 function.
|
static |
Lookup table for the exp function.
|
staticget |
Returns true
if the lookup tables have been loaded.