I went through a GeeksForGeeks article about determining whether a point is in a polygon or not but I'm struggling to understand what to do in the special case "g". I'm not sure how to handle the edge case of a point lying collinearly with another point in the polygon and I don't understand the provided explanation.
Any help understanding this is appreciated, thank you.
The Picture
GeeksForGeeks Article
2.1m questions
2.1m answers
60 comments
57.0k users