Macros | Functions
vgl_polygon_test.hxx File Reference
#include "vgl_polygon_test.h"
#include <vgl/vgl_lineseg_test.h>

Go to the source code of this file.

Macros

#define VGL_POLYGON_TEST_INSTANTIATE(T)   template bool vgl_polygon_test_inside(T const*, T const*, unsigned, T, T)
 

Functions

template<class T >
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. More...
 

Detailed Description

Author
fsm

Definition in file vgl_polygon_test.hxx.

Macro Definition Documentation

◆ VGL_POLYGON_TEST_INSTANTIATE

#define VGL_POLYGON_TEST_INSTANTIATE (   T)    template bool vgl_polygon_test_inside(T const*, T const*, unsigned, T, T)

Definition at line 53 of file vgl_polygon_test.hxx.

Function Documentation

◆ vgl_polygon_test_inside()

template<class T >
bool vgl_polygon_test_inside ( T const *  xs,
T const *  ys,
unsigned  n,
x,
y 
)

return true iff (x, y) is inside (or on boundary of) the given n-gon.

Definition at line 12 of file vgl_polygon_test.hxx.