Editing Talk:Point-in-polygon

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 9: Line 9:
 
Notably, this algorithm can be considerably improved by storing the bounding box of each polygon. It is slowed, however, if the bounding box is recalculated on each call.  
 
Notably, this algorithm can be considerably improved by storing the bounding box of each polygon. It is slowed, however, if the bounding box is recalculated on each call.  
 
--[[User:Analytophile|Analytophile]] 2:09, 7 December 2007
 
--[[User:Analytophile|Analytophile]] 2:09, 7 December 2007
-----------------
 
 
I understand your point. I would have made a different choice to handle this, but I realize this is purely subjective on my part. However, I did some testing and profiling because I was concerned about the efficiency: is seems that even when a point set is clearly outside of a polygon, the algorithm remains far slower than its ray casting counterpart. This is due to the time consumed in the calls to abs(z-zv[i]) which is rather inefficient (because of the square root involved I assume). I will attempt to improve that particular portion shortly.
 
--[[User:AEMPhil|AEMPhil]] 06:59, 12 December 2007 (MST)
 

Please note that all contributions to AEMWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see AEMWiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)