JavaScript implementation of Separating Axis Theorem for collisions. The code represents the sample 2D collision detection for rotated and non square polygons.
The demo is accessible on the following link.
As the theoretical base was taken the tutsPlus tutorial.