Skip to main content

Real

Type Alias Real 

Source
pub type Real = f64;
Expand description

Internal coordinate type used throughout the sweep and all geometric predicates.

Pinned to f64 — matching the C# agg-sharp Tesselator reference and modern libtess2 builds that opt for double precision. The sweep’s stability hinges on edge-sign tests not flipping under small coordinate perturbations (e.g. rotating integer input to floating coordinates): f32’s ~7 decimal digits of precision is not enough to keep near-collinear predicates on the same side across rotations. With f64 the 15-digit margin absorbs the rounding noise and the topology stays rotation-invariant — which is the whole point of this library.