Original Post
Is there a way to optimize the distance equation in C to get it faster than this: d = sqrt(x*x + y*y + z*z); //3d loss in accuracy is acceptable, to a degree, if the speed gain is substantial. Also, does there exist an open source math/physics C library that covers a wide array of math/physics equations? For example, one that covers collisions of all sorts, distance finding (between points, along equations, etc), and a lot of the math/physics questions we see in this forum?