Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Creating a circle in a data structure

by chromatic (Archbishop)
on May 28, 2007 at 06:33 UTC ( [id://617804]=note: print w/replies, xml ) Need Help??


in reply to Creating a circle in a data structure

If you have a list of potentially interesting items, you can compare their distance from the center of the circle to the radius of the circle to see if they're in the circle.

If you have a clever list of potentially interesting items, you can probably cull that further by removing objects that are obviously too far away.

  • Comment on Re: Creating a circle in a data structure

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://617804]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2024-05-28 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found