Point inside a polygon javascript
问题 I'm working in javascript finding that if the point i have is inside a polygon. I'm using ray-casting algorithm to compare that if the point is inside the polygon or not. The algo is working perfect for some case. But for some case it show the point is outside even when the points are lying all inside the polygon. !https://www.dropbox.com/s/rpxqnw9re3q6vsi/Screen%20Shot.png?dl=0 The area marked A1 is the parent polygon, and A2 and A3 are inside the parent polygon. Below the the function i'm