normalizePolygonRing
@totemsdk/spatial-proof / normalizePolygonRing
Function: normalizePolygonRing()
normalizePolygonRing(
ring):Coordinate[]
Deterministic normalizer: if the ring is not closed, append a copy of the first point. Idempotent for already-closed rings. The returned array is a fresh copy — the input is never mutated.