mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 12:27:37 +00:00
The hatch over the region under the pointer, and over each region a drag has touched, tested every flattened edge of the region on every hatch line, on every repaint. The edges are now sorted by their lower end once, and each line tests the edges that span it (plus any edge with a NaN or infinite end height, which keeps the old test on every line). The crossing test, the crossing formula, the sort and the pairing are unchanged, so the hatch lines are the same coordinate for coordinate. Tests compare every coordinate's bits against a copy of the old function on 12 paths at three gaps, check the sweep's crossings line by line against the old test, and count the edges tested on a 2,000-sided region.