NTCD C/C++ single file collision detection, closest point, and raycasting library for convex shapes using GJK. Read the source, i.e. ntcd.h for documentation.