반응형

닫힌 다각형의 내부점인지 외부점인지 확인하는 방법

 

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

 

 

 

반응형

'VBA' 카테고리의 다른 글

좌표를 시계방향, 반시계방향으로 정렬  (0) 2023.01.15
#NAME? 오류가 발생하는 원인과 해결 방법  (0) 2023.01.12
RSA Example with Excel  (0) 2022.12.05
하이퍼링크 일괄삭제  (0) 2022.08.04
Maclauric Seires for Exp(x)  (0) 2022.07.12

+ Recent posts