Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Better Logic?

by orbital (Scribe)
on Mar 21, 2001 at 01:43 UTC ( [id://65832]=note: print w/replies, xml ) Need Help??


in reply to Better Logic?

No I can't, because the quadrant doesn't neccessarily have to be or will be for that matter a perfect square. maybe I should have used different data with my example, I need to support this type as well:

@nw=qw(5,35); @ne=qw(30,42); @se=qw(28,3); @sw=qw(1,2);

Replies are listed 'Best First'.
Re: Re: Better Logic?
by merlyn (Sage) on Mar 21, 2001 at 01:50 UTC
    So would something along the line between nw and sw be in or out? What if it's just a bit west of the line but not west of both nw/sw? What if it's a bit east, but still west of either sw or nw?

    In other words, are you now doing real math to see if it's inside? Because your last example wouldn't work with this dataset either. {grin}

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found