Point in polygon calculation using vector geometric methods
arxiv.org
arxiv.org
(Ghana also seems like too simple a polygon, having neither holes nor interior nested within those holes, etc. ... but raycasting ought to do even better with more complicated interiors, so maybe that was the idea?)