Total circles area: Difference between revisions

→‎Scanline version: Now uses new core library method.
(add FreeBASIC)
(→‎Scanline version: Now uses new core library method.)
Line 3,493:
Quicker (about 4.7 seconds) and more precise (limited to 5 d.p. but achieves 7) than the above version.
<lang ecmascript>import "/dynamic" for Tuple
import "/math" for Nums, Math
import "/sort" for Sort
 
Line 3,547:
for (p in points) {
if (p.y > right) {
total = total + p.y - Math.max(p.x, .max(right)
right = p.y
}
9,482

edits