You can also use (a*a)+(b*b)+(c*c) = d (d is the distance², a-c = x-z). I assume that you are using a 3D Space...

Last edited by Sylar; 06/10/09 18:47.

Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com