Template Function Pnpoly::isIn

Function Documentation

template<typename T>
inline bool Pnpoly::isIn(std::vector<std::array<T, 2>> &polygon, std::array<T, 2> &p)
Parameters:
  • polygon – describing a geofenced area

  • p – point to test whether inside or not

Returns:

true if p is inside the polygon OR when p is any vertex OR on an edge of the convex hull