QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
testportals.c File Reference

Macros

#define FloatCompare(a, b)   (fabs (a - b) < 1e-5)
 
#define num_tests   (sizeof (tests) / sizeof (tests[0]))
 
#define VectorCompare(x, y)
 

Typedefs

typedef struct portlist_s portlist_t
 

Variables

test_t tests []
 
int verbose = 0
 

Macro Definition Documentation

#define FloatCompare (   a,
 
)    (fabs (a - b) < 1e-5)
#define num_tests   (sizeof (tests) / sizeof (tests[0]))
#define VectorCompare (   x,
 
)
Value:
(FloatCompare (x[0], y[0]) && FloatCompare (x[1], y[1]) \
&& FloatCompare (x[2], y[2]))
vec_t * x
Definition: test-bary.c:27
#define FloatCompare(a, b)
Definition: testportals.c:10

Typedef Documentation

typedef struct portlist_s portlist_t

Variable Documentation

test_t tests[]
Initial value:
= {
{"Three parallel planes 1",
&hull_tpp1, { 3}},
{"Three parallel planes 2",
&hull_tpp2, { 3}},
{"Three parallel planes with water",
&hull_tppw, { 3}},
{"Step 1",
&hull_step1, { 5}},
{"Covered Step",
{"Step 2",
&hull_step2, { 5}},
{"Step 3",
&hull_step3, { 5}},
{"Ramp",
&hull_ramp, { 4}},
{"Simple Wedge",
{"Hole",
&hull_hole, {13}},
{"ridge",
&hull_ridge, { 8}},
{"cave",
&hull_cave, {14}},
}
hull_t hull_ramp
Definition: hulls.c:236
hull_t hull_ridge
Definition: hulls.c:297
hull_t hull_step2
Definition: hulls.c:150
hull_t hull_tpp2
Definition: hulls.c:71
hull_t hull_step1
Definition: hulls.c:123
hull_t hull_covered_step
Definition: hulls.c:210
hull_t hull_tppw
Definition: hulls.c:97
hull_t hull_step3
Definition: hulls.c:177
hull_t hull_cave
Definition: hulls.c:339
hull_t hull_simple_wedge
Definition: hulls.c:19
hull_t hull_hole
Definition: hulls.c:269
hull_t hull_tpp1
Definition: hulls.c:45
int verbose = 0