in reply to Re: Re: Processing data with lot of math...
in thread Processing data with lot of math...
The point is to avoid having both loops go over all the points. The distance from origin is just one way of easily filtering out some (with luck, most) points for the inner loop (since the distance between two points is guaranteed to be greater than or equal to the difference in their distances from a third point).
The distance between $one and $two is still checked.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Processing data with lot of math...
by BrowserUk (Patriarch) on May 12, 2004 at 20:32 UTC | |
by ysth (Canon) on May 12, 2004 at 23:00 UTC | |
by BrowserUk (Patriarch) on May 12, 2004 at 23:47 UTC |