vgl_polygon_test.h
Go to the documentation of this file.
1 // This is core/vgl/vgl_polygon_test.h
2 #ifndef vgl_polygon_test_h_
3 #define vgl_polygon_test_h_
4 //:
5 // \file
6 // \author fsm
7 // \verbatim
8 // Modifications
9 // Nov.2003 - Peter Vanroose - made function templated
10 // \endverbatim
11 
12 //: return true iff (x, y) is inside (or on boundary of) the given n-gon.
13 // \relatesalso vgl_polygon
14 template <class T>
15 bool vgl_polygon_test_inside(T const *xs, T const *ys, unsigned n, T x, T y);
16 
17 #define VGL_POLYGON_TEST_INSTANTIATE(T) extern "please include vgl/vgl_polygon_test.hxx instead"
18 
19 #endif // vgl_polygon_test_h_
bool vgl_polygon_test_inside(T const *xs, T const *ys, unsigned n, T x, T y)
return true iff (x, y) is inside (or on boundary of) the given n-gon.