a simple geometry/math library