Method for judging position relationship between point and arbitrary polygon by using included angle sum method combining cross multiplication method
A relational method and polygon technology, applied in image data processing, instruments, calculations, etc., can solve problems such as poor stability, difficult to solve critical situations, and difficult to deal with critical situations, and achieve the effect of small amount of calculation.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0017] Such as figure 1 Shown, the present invention provides a kind of angle sum method combined with cross multiplication method to determine point and arbitrary polygonal position relationship method, if P={p1, p2,..., pn, p1} is a vertex is pi (xi, yi), i=1, 2,...,n any polygon, Pt is a decision point. PtPi is the vectors connecting pt and pi, αi represents the angle between the vector PtPi and PtPi+1; calculate the azimuth βi of the vector PtPi, and the azimuth βi+1 of PtPi+1; the angle αi is calculated by the difference of the azimuth : αi=|βi+1-βi|; because αi(-180°180°, αi=360°-αi; determine the direction of the included angle by cross product of Pt and PiPi+1 , the direction of the included angle αi is positive when it is greater than zero, and the direction of the included angle αi is negative when it is not greater than zero; calculate the sum of included angles, when the sum of included angles is equal to 360°, the point is inside the polygon; when the sum of inc...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
