Defines | Functions
core/vgl/vgl_polygon_test.txx File Reference
#include "vgl_polygon_test.h"
#include <vgl/vgl_lineseg_test.h>

Go to the source code of this file.

Defines

#define vgl_polygon_test_txx_
#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.

Detailed Description

Author:
fsm

Definition in file vgl_polygon_test.txx.


Define Documentation

#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.txx.

#define vgl_polygon_test_txx_

Definition at line 3 of file vgl_polygon_test.txx.


Function Documentation

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.txx.