test_helpers.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include "r3d.h"
#include "r2d.h"
#include "rNd.h"
#include "v3d.h"
#include "v2d.h"
#include "vNd.h"

Go to the source code of this file.

Functions

int rand_int (int N)
 
double rand_uniform ()
 
double rand_normal ()
 
r3d_plane thru_cent_3d (r3d_poly *poly)
 
r3d_plane thru_face_3d (r3d_poly *poly)
 
r3d_plane thru_edge_cent_3d (r3d_poly *poly)
 
r3d_plane thru_edge_rand_3d (r3d_poly *poly)
 
r3d_plane thru_vert_cent_3d (r3d_poly *poly)
 
r3d_plane thru_vert_rand_3d (r3d_poly *poly)
 
r3d_rvec3 get_centroid_3d (r3d_poly *poly)
 
r3d_plane point_plane_3d (r3d_rvec3 p0, r3d_rvec3 p1, r3d_rvec3 p2)
 
r3d_rvec3 rand_uvec_3d ()
 
r3d_real rand_tet_3d (r3d_rvec3 verts[4], r3d_real minvol)
 
r2d_plane thru_cent_2d (r2d_poly *poly)
 
r2d_plane thru_edge_2d (r2d_poly *poly)
 
r2d_plane thru_vert_cent_2d (r2d_poly *poly)
 
r2d_plane thru_vert_rand_2d (r2d_poly *poly)
 
r2d_plane point_plane_2d (r2d_rvec2 p0, r2d_rvec2 p1)
 
r2d_rvec2 get_centroid_2d (r2d_poly *poly)
 
r2d_real rand_tri_2d (r2d_rvec2 verts[3], r2d_real minvol)
 
r2d_rvec2 rand_uvec_2d ()
 
rNd_plane thru_cent_Nd (rNd_poly *poly)
 
rNd_real rand_simplex_Nd (rNd_rvec verts[RND_DIM+1], rNd_real minvol)
 
void get_centroid_Nd (rNd_poly *poly, rNd_rvec centroid)
 

Variables

r3d_plane(* choptions_3d [6])(r3d_poly *poly)
 
r2d_plane(* choptions_2d [4])(r2d_poly *poly)
 

Function Documentation

◆ get_centroid_2d()

r2d_rvec2 get_centroid_2d ( r2d_poly poly)

◆ get_centroid_3d()

r3d_rvec3 get_centroid_3d ( r3d_poly poly)

◆ get_centroid_Nd()

void get_centroid_Nd ( rNd_poly poly,
rNd_rvec  centroid 
)

◆ point_plane_2d()

r2d_plane point_plane_2d ( r2d_rvec2  p0,
r2d_rvec2  p1 
)

◆ point_plane_3d()

r3d_plane point_plane_3d ( r3d_rvec3  p0,
r3d_rvec3  p1,
r3d_rvec3  p2 
)

◆ rand_int()

int rand_int ( int  N)

◆ rand_normal()

double rand_normal ( )

◆ rand_simplex_Nd()

rNd_real rand_simplex_Nd ( rNd_rvec  verts[RND_DIM+1],
rNd_real  minvol 
)

◆ rand_tet_3d()

r3d_real rand_tet_3d ( r3d_rvec3  verts[4],
r3d_real  minvol 
)

◆ rand_tri_2d()

r2d_real rand_tri_2d ( r2d_rvec2  verts[3],
r2d_real  minvol 
)

◆ rand_uniform()

double rand_uniform ( )

◆ rand_uvec_2d()

r2d_rvec2 rand_uvec_2d ( )

◆ rand_uvec_3d()

r3d_rvec3 rand_uvec_3d ( )

◆ thru_cent_2d()

r2d_plane thru_cent_2d ( r2d_poly poly)

◆ thru_cent_3d()

r3d_plane thru_cent_3d ( r3d_poly poly)

◆ thru_cent_Nd()

rNd_plane thru_cent_Nd ( rNd_poly poly)

ND helper functions.

◆ thru_edge_2d()

r2d_plane thru_edge_2d ( r2d_poly poly)

◆ thru_edge_cent_3d()

r3d_plane thru_edge_cent_3d ( r3d_poly poly)

◆ thru_edge_rand_3d()

r3d_plane thru_edge_rand_3d ( r3d_poly poly)

◆ thru_face_3d()

r3d_plane thru_face_3d ( r3d_poly poly)

◆ thru_vert_cent_2d()

r2d_plane thru_vert_cent_2d ( r2d_poly poly)

◆ thru_vert_cent_3d()

r3d_plane thru_vert_cent_3d ( r3d_poly poly)

◆ thru_vert_rand_2d()

r2d_plane thru_vert_rand_2d ( r2d_poly poly)

◆ thru_vert_rand_3d()

r3d_plane thru_vert_rand_3d ( r3d_poly poly)

Variable Documentation

◆ choptions_2d

r2d_plane(* choptions_2d[4])(r2d_poly *poly)

◆ choptions_3d

r3d_plane(* choptions_3d[6])(r3d_poly *poly)