#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <float.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "nn.h"
#include "delaunay.h"
#include "nan.h"
#include "hash.h"
Go to the source code of this file.
Functions |
| int | circle_build (circle *c, point *p0, point *p1, point *p2) |
| int | circle_contains (circle *c, point *p) |
| void | delaunay_circles_find (delaunay *d, point *p, int *n, int **out) |
| int | delaunay_xytoi (delaunay *d, point *p, int seed) |
| void | nn_quit (const char *format,...) |
| void | nnpi_reset (nnpi *nn) |
| void | nnpi_calculate_weights (nnpi *nn) |
| void | nnpi_normalize_weights (nnpi *nn) |
| void | nnpi_set_point (nnpi *nn, point *p) |
| int | nnpi_get_nvertices (nnpi *nn) |
| int * | nnpi_get_vertices (nnpi *nn) |
| double * | nnpi_get_weights (nnpi *nn) |
| nnpi * | nnpi_create (delaunay *d) |
| void | nnpi_destroy (nnpi *nn) |
| static void | nnpi_add_weight (nnpi *nn, int vertex, double w) |
| static double | triangle_scale_get (delaunay *d, triangle *t) |
| static void | nnpi_triangle_process (nnpi *nn, point *p, int i) |
| void | nnpi_interpolate_point (nnpi *nn, point *p) |
| void | nnpi_interpolate_points (int nin, point pin[], double wmin, int nout, point pout[]) |
| void | nnpi_setwmin (nnpi *nn, double wmin) |
| nnhpi * | nnhpi_create (delaunay *d, int size) |
| static void | free_nn_weights (void *data) |
| void | nnhpi_destroy (nnhpi *nn) |
| void | nnhpi_interpolate (nnhpi *nnhp, point *p) |
| void | nnhpi_modify_data (nnhpi *nnhp, point *p) |
| void | nnhpi_setwmin (nnhpi *nn, double wmin) |
Macro Definition Documentation
| #define BIGNUMBER 1.0e+100 |
| #define max |
( |
|
x, |
|
|
|
y |
|
) |
| ( ( x ) > ( y ) ? ( x ) : ( y ) ) |
| #define min |
( |
|
x, |
|
|
|
y |
|
) |
| ( ( x ) < ( y ) ? ( x ) : ( y ) ) |
| #define N_SEARCH_TURNON 20 |
Function Documentation
| static void free_nn_weights |
( |
void * |
data | ) |
|
|
static |
| void nn_quit |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
| void nnhpi_setwmin |
( |
nnhpi * |
nn, |
|
|
double |
wmin |
|
) |
| |
| static void nnpi_add_weight |
( |
nnpi * |
nn, |
|
|
int |
vertex, |
|
|
double |
w |
|
) |
| |
|
static |
| void nnpi_calculate_weights |
( |
nnpi * |
nn | ) |
|
| int nnpi_get_nvertices |
( |
nnpi * |
nn | ) |
|
| int* nnpi_get_vertices |
( |
nnpi * |
nn | ) |
|
| double* nnpi_get_weights |
( |
nnpi * |
nn | ) |
|
| void nnpi_interpolate_points |
( |
int |
nin, |
|
|
point |
pin[], |
|
|
double |
wmin, |
|
|
int |
nout, |
|
|
point |
pout[] |
|
) |
| |
| void nnpi_normalize_weights |
( |
nnpi * |
nn | ) |
|
| void nnpi_setwmin |
( |
nnpi * |
nn, |
|
|
double |
wmin |
|
) |
| |
| static void nnpi_triangle_process |
( |
nnpi * |
nn, |
|
|
point * |
p, |
|
|
int |
i |
|
) |
| |
|
static |