Skip to main content

ring_degenerate

Function ring_degenerate 

Source
pub fn ring_degenerate(coords: &[(i32, i32)]) -> bool
Expand description

Reports whether the ring collapsed under quantization: fewer than 3 vertices remain, or the shoelace area is exactly 0 with no proper self-crossing. The crossing exemption matters: a bowtie with equal opposite lobes has signed area 0 yet still covers both lobes under the runtime’s even-odd rule. Dropping it would lose real coverage. The computation is exact in i128 for all qbits.