fork of alex holkner's python math library for game developers