Skip to content

Comment on Fun with convex polygons

Comments

"I’ve seen a lot of people go through and calculate the area of a polygon by breaking it up into separate triangles, carefully calculating the area of each, then sum and halve."

I doubt anyone do that. What was described seems a lot more work compared to searching the web for the right formula/algorithm/source-code -- at least in the modern days. A very minimal amount of research will reveal this algorithm mentioned by the author.

That said, it certainly is a very nice algorithm.

AboutSource Built by g1lg1l

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