Math, asked by balaji5714, 1 year ago

How to find if a point lies inside or outside or on a polygon?

Answers

Answered by AryanTennyson
0
1) Draw a horizontal line to the right of each point and extend it to infinity
2) Count the number of times the line intersects with polygon edges.
3) A point is inside the polygon if either count of intersections is odd or point lies on an edge of polygon. If none of the conditions is true, then point lies outside.
Similar questions