If performance is an issue and you use pythagorus, then don't find the
square root of the two squared sides, but compare it to the squared
distance desired.
e.g. if you want to know things within a 10 km distance, then compare
X*X+Y*Y < 100.
Finding a square root is extremely expensive computationally, and if
you can avoid it, it will trim your time dramatically.

Darren


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to