A Ruby extension providing a number of 2D intersection tests