See FGeomTools, it has nice functions like FGeomTools2D::IsPointInPolygon.