Skip to content

Comment on Fun with convex polygons

Comments

That works for just fine for concave non self intersecting polys as well - all the signed areas (albeit overlapping) cancel appropriately.

(scribble scribble) ... Edit: and for self intersecting, it gives the area of the poly where winding is odd.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.