DR0ID wrote:
Hidef CalculateDistance(a, b): x, y, z = b[0] - a[0], b[1] - a[1], b[2] - a[2] dist = x*x + y*y + z*z return dist * distno offense, but "x*x + y*y + z*z" is already the distance squared, so no need for "return dist*dist". (or did you do this on purpose?). ~DR0ID
Uh, yeah, good catch. :-)