AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
in_polygon.hpp File Reference

Consists of methods that test whether a given query point is inside a given polygon. More...

#include "axom/config.hpp"
#include "axom/primal/geometry/Point.hpp"
#include "axom/primal/geometry/Polygon.hpp"
#include "axom/primal/operators/detail/winding_number_2d_impl.hpp"
#include <cmath>

Namespaces

 axom
 
 axom::primal
 

Functions

template<typename T >
bool axom::primal::in_polygon (const Point< T, 2 > &query, const Polygon< T, 2 > &poly, bool includeBoundary=false, bool useNonzeroRule=true, double edge_tol=1e-8)
 Determines containment for a point in a polygon. More...
 

Detailed Description

Consists of methods that test whether a given query point is inside a given polygon.

Uses a ray casting algorithm