Module s2::consts
[−]
[src]
Constants
DBL_EPSILON |
DBL_EPSILON is a smaller number for values that require more precision. |
EPSILON |
Define the maximum rounding error for arithmetic operations. Depending on the platform the mantissa precision may be different than others, so we choose to use specific values to be consistent across all. The values come from the C++ implementation. EPSILON is a small number that represents a reasonable level of noise between two values that can be considered to be equal. |
Functions
clamp | |
f64_eq |
f64_eq reports whether the two values are within the default epsilon. |
f64_near |
f64_near reports whether the two values are within the specified epsilon. |
remainder |
TODO: to util module? |
search_lower_by |