klpocska Posted February 11, 2011 Share Posted February 11, 2011 Hi everyone! I need a VBA macro to check a 2D point is inside or outside of a closed lwpolyline (polygon). what should i do ? Can somebody help me? Thx Quote Link to comment Share on other sites More sharing options...
fuccaro Posted February 14, 2011 Share Posted February 14, 2011 Consider all the lines from the point to the polyline nodes. Sum the angles between consecutive lines like this: If the sum is equal with 2*PI, or *very* close to that, then then the point is intside the polyline. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.