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) = expIntTableAx + 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

Functions

atan(double xa, [double xb = 0.0, bool leftPlane = false]) double
Internal helper function to compute arctangent.
atan2(double y, double x) double
Two arguments arctangent function
copySign(double magnitude, double sign) double
Returns the first argument with the sign of the second argument. A NaN sign argument is treated as positive.
cosh(double x) double
Compute the hyperbolic cosine of a number.
exp(double x, [double extra = 0.0, List<double>? hiPrec]) double
Internal helper method for exponential function.
expm1(double x, List<double> hiPrecOut) double
Compute exp(x) - 1.
sinh(double x) double
Compute the hyperbolic sine of a number.