2320 shaares
of Kevin Lindsey's SVG geometry library, modified slightly to support elliptical arcs, for finding collisions. My original plan was to use the browser checkIntersection() built-in but it didn't work properly in any browsers. Currently I would prefer to go the other way and avoid using any of the rendering state in game logic.