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

Macros

#define num_tests   (sizeof (tests) / sizeof (tests[0]))
 

Functions

int main (int argc, const char **argv)
 

Variables

const vec_tline [] = {points[0], points[1]}
 
vec3_t points []
 
struct {
   vec_t   expect [4]
 
   int   num_points
 
   const vec_t **   points
 
   vec_t *   x
 
tests []
 
const vec_ttetra [] = {points[0], points[1], points[2], points[3]}
 
const vec_ttri [] = {points[0], points[1], points[2]}
 

Macro Definition Documentation

#define num_tests   (sizeof (tests) / sizeof (tests[0]))

Function Documentation

int main ( int  argc,
const char **  argv 
)

Variable Documentation

vec_t expect[4]
const vec_t* line[] = {points[0], points[1]}
int num_points
const vec_t** points
Initial value:
= {
{-1, -1, 1},
{ 1, 1, 1},
{-1, 1, -1},
{ 1, -1, -1},
{-1, -1, -1},
{ 1, 1, -1},
{-1, 1, 1},
{ 1, -1, 1},
{ 0, 0, 0},
}
struct { ... } tests[]
Initial value:
= {
{line, 2, points[0], {1, 0}},
{line, 2, points[1], {0, 1}},
{line, 2, points[2], {0.5, 0.5}},
{line, 2, points[3], {0.5, 0.5}},
{line, 2, points[8], {0.5, 0.5}},
{tri, 3, points[0], {1, 0, 0}},
{tri, 3, points[1], {0, 1, 0}},
{tri, 3, points[2], {0, 0, 1}},
{tri, 3, points[3], {0.333333284, 0.333333333, 0.333333333}},
{tri, 3, points[8], {0.333333284, 0.333333333, 0.333333333}},
{tetra, 4, points[0], {1, 0, 0, 0}},
{tetra, 4, points[1], {0, 1, 0, 0}},
{tetra, 4, points[2], {0, 0, 1, 0}},
{tetra, 4, points[3], {0, 0, 0, 1}},
{tetra, 4, points[4], { 0.5, -0.5, 0.5, 0.5}},
{tetra, 4, points[5], {-0.5, 0.5, 0.5, 0.5}},
{tetra, 4, points[6], { 0.5, 0.5, 0.5, -0.5}},
{tetra, 4, points[7], { 0.5, 0.5, -0.5, 0.5}},
{tetra, 4, points[8], {0.25, 0.25, 0.25, 0.25}},
}
const vec_t * tri[]
Definition: test-bary.c:21
vec3_t points[]
Definition: test-bary.c:9
const vec_t * line[]
Definition: test-bary.c:20
const vec_t * tetra[]
Definition: test-bary.c:22
const vec_t* tetra[] = {points[0], points[1], points[2], points[3]}
const vec_t* tri[] = {points[0], points[1], points[2]}
vec_t* x