Migrating the original QuasimondoLibs to Javascript. Mostly 2D Geometry.