A simpler way that might work fine for you is to use vec_distance. I use it all the time and it has the advantage of being fast. Look it up in the manual and it will give examples of how to use it.
Edit: I should have said vec_dist for lite-C.
Regards,

Last edited by JimFox; 01/08/08 18:17.

Jim