Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Speeding up point-in-polygon -- take two

by explorer (Chaplain)
on Aug 28, 2006 at 16:35 UTC ( #570006=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( $y[i] <= $y ) {
        if ( $y < $y[$j] ) {
    ...
        # the same process ..
    }
    
  2. or download this
    if ( ( $y[$i] - $y ) * ( $y - $y[$j] ) > 0 ) {
        # process
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570006]
help
Chatterbox?
[tye]: gah, Benchmark needs some serious work.
[tye]: though, really, I just replace with single calls to clock_gettime( CLOCK_PROCESS_CPUT IME_ID)

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-02-23 03:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (338 votes). Check out past polls.