the separating axes algorithm

Because I spend some time writing this stupid code and, in the end, don’t need it at all, I’ll just post it here hoping that someone can use it sometime :). The separating axes theorem is used to determine whether two convex polygons are colliding. Absolutely nothing amazing and well documented on the net, but here it is.

By the way, it would be nice if we had a ‘real’ repository for these code snippets. Or we could just use some existing ones…