VBA
닫힌 다각형의 내부점인지 외부점인지 확인하는 방법
skyground21
2023. 1. 12. 10:41
반응형
닫힌 다각형의 내부점인지 외부점인지 확인하는 방법
Test Whether A Point Is In A Polygon Or Not
https://excelfox.com/forum/showthread.php/1579-Test-Whether-A-Point-Is-In-A-Polygon-Or-Not
Test Whether A Point Is In A Polygon Or Not
Public Function PtInPoly(Xcoord As Double, Ycoord As Double, Polygon As Variant) As Variant Dim x As Long, NumSidesCrossed As Long, m As Double, b As Double, Poly As Variant Poly = Polygon If Not (Poly(LBound(Poly), 1) = Poly(UBound(Poly), 1) And _ Poly(LB
excelfox.com
반응형