gfxpoly is a computational geometry library. It's used in swftools to precompute clipping operations.
It's very stable- at www.scribd.com, it's used to process (rewind and optimize) over 150,000,000 polygons every single day.
[tutorial], [source code on github]