Collision detection for my php animation library
<p>I developed a PHP animation library based on SVG:
<a href="http://www.svgdreams.com/" rel="nofollow">http://www.svgdreams.com/</a>
The library is capable to build SVG shapes and animations and insert/update shapes via an AJAX response. </p>

<p>In the version 0.1.2 I want to add collision detection, so developers can bind collision detection and send an ajax call in a collision. </p>

<p>I tried to calculate the collision of minimum squares around shapes with some frequency but sometimes Javascript can't handle it when there're more than 2 shapes to compare. (I'm aware that this is not an exact collision detection, not valid for shapes like polygons or ellipses). </p>

<p>I believe there's an optimum solution for this. 
Thanks for all kind of advices by now. 
Tolga</p>
