Constant spade::MIN_ALLOWED_VALUE
source · pub const MIN_ALLOWED_VALUE: f64 = 1.793662034335766e-43;
Expand description
The smallest allowed coordinate value greater than zero that can be inserted into Delaunay triangulations. This value is equal to 2-142.
The absolute value of any inserted vertex coordinate must be either zero or greater than or equal to this value. This is a requirement for preventing floating point underflow when calculating exact geometric predicates.
Note that “underflow” refers to underflow of the f64
exponent in contrast to underflow towards
negative infinity: Values very close to zero (but not zero itself) can potentially trigger this
situation.
See also validate_coordinate, validate_vertex, MAX_ALLOWED_VALUE, crate::Triangulation::insert, mitigate_underflow