PLplot  5.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
nncommon.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <math.h>
#include <limits.h>
#include <float.h>
#include <string.h>
#include <errno.h>
#include "nan.h"
#include "delaunay.h"
#include "version.h"

Go to the source code of this file.

Macros

#define BUFSIZE   1024
#define EPSILON   1.0e-8
#define NALLOCATED_START   1024

Functions

void nn_quit (const char *format,...)
int circle_build (circle *c, point *p1, point *p2, point *p3)
int circle_contains (circle *c, point *p)
void points_thin (int *pn, point **ppoints, int nx, int ny)
void points_generate1 (int nin, point pin[], int nx, int ny, double zoom, int *nout, point **pout)
void points_generate2 (double xmin, double xmax, double ymin, double ymax, int nx, int ny, int *nout, point **pout)
static int str2double (char *token, double *value)
void points_read (char *fname, int dim, int *n, point **points)
double points_scaletosquare (int n, point *points)
void points_scale (int n, point *points, double k)

Variables

int nn_verbose = 0
int nn_test_vertice = -1
NN_RULE nn_rule = SIBSON

Macro Definition Documentation

#define BUFSIZE   1024

Definition at line 39 of file nncommon.c.

#define EPSILON   1.0e-8

Definition at line 41 of file nncommon.c.

#define NALLOCATED_START   1024

Definition at line 393 of file nncommon.c.

Function Documentation

int circle_build ( circle c,
point p1,
point p2,
point p3 
)

Definition at line 68 of file nncommon.c.

int circle_contains ( circle c,
point p 
)

Definition at line 98 of file nncommon.c.

void nn_quit ( const char *  format,
  ... 
)

Definition at line 53 of file nncommon.c.

void points_generate1 ( int  nin,
point  pin[],
int  nx,
int  ny,
double  zoom,
int *  nout,
point **  pout 
)

Definition at line 249 of file nncommon.c.

void points_generate2 ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
int  nx,
int  ny,
int *  nout,
point **  pout 
)

Definition at line 334 of file nncommon.c.

void points_read ( char *  fname,
int  dim,
int *  n,
point **  points 
)

Definition at line 402 of file nncommon.c.

void points_scale ( int  n,
point points,
double  k 
)

Definition at line 530 of file nncommon.c.

double points_scaletosquare ( int  n,
point points 
)

Definition at line 487 of file nncommon.c.

void points_thin ( int *  pn,
point **  ppoints,
int  nx,
int  ny 
)

Definition at line 114 of file nncommon.c.

static int str2double ( char *  token,
double *  value 
)
static

Definition at line 372 of file nncommon.c.

Variable Documentation

NN_RULE nn_rule = SIBSON

Definition at line 45 of file nncommon.c.

int nn_test_vertice = -1

Definition at line 44 of file nncommon.c.

int nn_verbose = 0

Definition at line 43 of file nncommon.c.