mapbox_ad/common/util/math_helper
library
Constants
-
cosineTableA
→ const List<double>
-
Cosine table (high bits).
-
cosineTableB
→ const List<double>
-
Cosine table (low bits).
-
expFracTableA
→ const List<double>
-
Exponential over the range of 0 - 1 in increments of
2^-10
exp(x/1024) = expFracTableAx + expFracTableBx.
1024 = 2^10
-
expFracTableB
→ const List<double>
-
Exponential over the range of 0 - 1 in increments of
2^-10
exp(x/1024) = expFracTableAx + expFracTableBx.
-
expIntTableA
→ const List<double>
-
Exponential evaluated at integer values,
-
expIntTableB
→ const List<double>
-
Exponential evaluated at integer values,
exp(x) =
expIntTableA
x + exp_int_table_max_index
+ expIntTableBx+exp_int_table_max_index
-
expIntTableMaxIndex
→ const int
-
Index of exp(0) in the array of integer exponentials.
-
hex40000000
→ const int
-
0x40000000 - used to split a double into two parts, both with the low
order bits cleared. Equivalent to 2^30.
-
sineTableA
→ const List<double>
-
Sine table (high bits).
-
sineTableB
→ const List<double>
-
Sine table (low bits).
-
sineTableLen
→ const int
-
Sine, Cosine, Tangent tables are for 0, 1/8, 2/8, ... 13/8 = PI/2 approx.
-
tangentTableA
→ const List<double>
-
Tangent table, used by atan() (high bits).
-
tangentTableB
→ const List<double>
-
Tangent table, used by atan() (low bits).
Properties
-
logMaxValue
→ double
-
The
logMaxValue is the natural logarithm of doubel.maxFinite
final