Is a point inside or outside a polygon which is on the surface of a globe
- by richard
How do I determine if a point is inside or outside a polygon that lies on the the surface of the earth?
The inside of the polygon can be determined via the right hand rule, ie. the inside of the polygon is on your right hand side when you walk around the polygon.
The polygon may
Circle either pole
Cross the 180 longitude
Cover more than 50% of the globe
As the globe is a sphere the normal ray crossing algorithms do not work correctly.