General Purpose 2D Collision Detection System Documentation and examples here: http://hc.readthedocs.org/