Check if a point is inside a polygon using ray-casting algorithm
Korean: 점-다각형 내부 확인 (Point-in-Polygon Test)
Uses the ray-casting algorithm to determine if a point is inside a polygon.
Casts a ray from the point to infinity and counts boundary crossings.
Odd number of crossings = inside, even number = outside.
Check if a point is inside a polygon using ray-casting algorithm
Korean: 점-다각형 내부 확인 (Point-in-Polygon Test)
Uses the ray-casting algorithm to determine if a point is inside a polygon. Casts a ray from the point to infinity and counts boundary crossings. Odd number of crossings = inside, even number = outside.