BG_Flood
0.8
Documentation (Work-in-progress)
|
#include "General.h"
#include "Param.h"
#include "Input.h"
#include "Write_txtlog.h"
#include "Util_CPU.h"
#include "Forcing.h"
#include "Arrays.h"
#include "MemManagement.h"
Go to the source code of this file.
Functions | |
template<class T > | |
bool | blockinpoly (T xo, T yo, T dx, int blkwidth, Polygon Poly) |
check whether a block is inside or intersectin a polygon More... | |
template<class T > | |
int | wn_PnPoly (T Px, T Py, Polygon Poly) |
winding number test for a point in a polygon More... | |
Polygon | CounterCWPoly (Polygon Poly) |
check polygon handedness and reverse if necessary. More... | |
bool blockinpoly | ( | T | xo, |
T | yo, | ||
T | dx, | ||
int | blkwidth, | ||
Polygon | Poly | ||
) |
int wn_PnPoly | ( | T | Px, |
T | Py, | ||
Polygon | Poly | ||
) |
winding number test for a point in a polygon
wn_PnPoly(): winding number test for a point in a polygon Input: P = a point, V[] = vertex points of a polygon V[n+1] with V[n]=V[0] Return: wn = the winding number (=0 only when P is outside)
Copyright 2000 softSurfer, 2012 Dan Sunday
This code may be freely used and modified for any purpose providing that this copyright notice is included with it. SoftSurfer makes no warranty for this code, and cannot be held liable for any real or imagined damage resulting from its use. Users of this code must verify correctness for their application. Code modified to fit the use in DisperGPU