Axel Meyer 9a61647b4a Fix coastline water side flipping on rotation
Root cause: pairEdges returned edges sorted numerically, but
getVerticesOnSide interprets "CW walk from edge2 to edge1" —
when the pair order flipped (e.g., [NE,NW] vs [E,SE]), the
CW walk went the long way vs short way, swapping water/land.

Fix: normalize edge pair so CW distance from e1→e2 is always
≤3 steps (the short arc). This makes waterSide=1 consistently
mean the same geometric side at every rotation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 11:22:52 +00:00
2026-04-07 10:09:51 +00:00
2026-04-07 10:09:51 +00:00
2026-04-07 10:09:51 +00:00
2026-04-07 10:09:51 +00:00
2026-04-07 10:09:51 +00:00
2026-04-07 10:09:51 +00:00
Description
No description provided
367 KiB
Languages
TypeScript 96.5%
CSS 3.2%
HTML 0.3%