in reply to Re^5: searching polygons not merged
in thread searching polygons not merged
...the circle is trivially easy to compute.
Quite on the contrary, I'd say that it is the bounding box which is trivially easy to compute, whereas the circle is rather straightforward but still needs quite a couple of floating point operations. Both are linear with the number of points, but you just need to write down the subs for both algorithms for a triangle and you'll easily spot the difference.
Regarding performance, I guess that floating point operations are slow compared to if/then/else branching.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: searching polygons not merged
by hippo (Archbishop) on Oct 28, 2018 at 22:52 UTC | |
by haj (Vicar) on Oct 28, 2018 at 23:56 UTC | |
by LanX (Saint) on Oct 29, 2018 at 02:57 UTC | |
by hippo (Archbishop) on Oct 29, 2018 at 08:59 UTC |