Mapper
Macros | Functions | Variables
pointpoly.c File Reference
#include <math.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/times.h>
Include dependency graph for pointpoly.c:

Go to the source code of this file.

Macros

#define X   0
 
#define Y   1
 
#define MIN_VERTS   3
 
#define MAX_VERTS   7
 
#define TEST_POLYGONS   30
 
#define TEST_POINTS   30
 
#define ANGLE_TEST_TIMES   1000
 
#define BARYCENTRIC_TEST_TIMES   10000
 
#define CROSSINGS_TEST_TIMES   10000
 
#define MACMARTIN_TEST_TIMES   10000
 

Functions

double drand48 ()
 
 main (int argc, argv)
 
int angletest (pgon, numverts, point)
 
int barycentrictest (pgon, numverts, point)
 
int crossingstest (pgon, numverts, point)
 
int macmartintest (pgon, numverts, point)
 

Variables

double AngleTimeTotal
 
double BarycentricTimeTotal
 
double CrossingsTimeTotal
 
double MacmartinTimeTotal
 

Macro Definition Documentation

◆ ANGLE_TEST_TIMES

#define ANGLE_TEST_TIMES   1000

Definition at line 44 of file pointpoly.c.

◆ BARYCENTRIC_TEST_TIMES

#define BARYCENTRIC_TEST_TIMES   10000

Definition at line 45 of file pointpoly.c.

◆ CROSSINGS_TEST_TIMES

#define CROSSINGS_TEST_TIMES   10000

Definition at line 46 of file pointpoly.c.

◆ MACMARTIN_TEST_TIMES

#define MACMARTIN_TEST_TIMES   10000

Definition at line 47 of file pointpoly.c.

◆ MAX_VERTS

#define MAX_VERTS   7

Definition at line 34 of file pointpoly.c.

◆ MIN_VERTS

#define MIN_VERTS   3

Definition at line 33 of file pointpoly.c.

◆ TEST_POINTS

#define TEST_POINTS   30

Definition at line 40 of file pointpoly.c.

◆ TEST_POLYGONS

#define TEST_POLYGONS   30

Definition at line 37 of file pointpoly.c.

◆ X

#define X   0

Definition at line 22 of file pointpoly.c.

◆ Y

#define Y   1

Definition at line 23 of file pointpoly.c.

Function Documentation

◆ angletest()

int angletest ( pgon  ,
numverts  ,
point   
)

Definition at line 137 of file pointpoly.c.

Here is the caller graph for this function:

◆ barycentrictest()

int barycentrictest ( pgon  ,
numverts  ,
point   
)

Definition at line 204 of file pointpoly.c.

Here is the caller graph for this function:

◆ crossingstest()

int crossingstest ( pgon  ,
numverts  ,
point   
)

Definition at line 291 of file pointpoly.c.

Here is the caller graph for this function:

◆ drand48()

double drand48 ( )
Here is the caller graph for this function:

◆ macmartintest()

int macmartintest ( pgon  ,
numverts  ,
point   
)

Definition at line 356 of file pointpoly.c.

Here is the caller graph for this function:

◆ main()

main ( int  argc,
argv   
)

Definition at line 49 of file pointpoly.c.

Here is the call graph for this function:

Variable Documentation

◆ AngleTimeTotal

double AngleTimeTotal

Definition at line 27 of file pointpoly.c.

◆ BarycentricTimeTotal

double BarycentricTimeTotal

Definition at line 28 of file pointpoly.c.

◆ CrossingsTimeTotal

double CrossingsTimeTotal

Definition at line 29 of file pointpoly.c.

◆ MacmartinTimeTotal

double MacmartinTimeTotal

Definition at line 30 of file pointpoly.c.