Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
edges.h File Reference
#include <neatogen/site.h>
Include dependency graph for edges.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Edge
 

Macros

#define le   0
 
#define re   1
 

Typedefs

typedef struct Edge Edge
 

Functions

void edgeinit (void)
 
void endpoint (Edge *, int, Site *)
 
void clip_line (Edge *e)
 
Edgegvbisect (Site *, Site *)
 

Variables

double pxmin
 
double pxmax
 
double pymin
 
double pymax
 

Macro Definition Documentation

◆ le

#define le   0

Definition at line 26 of file edges.h.

◆ re

#define re   1

Definition at line 27 of file edges.h.

Typedef Documentation

◆ Edge

typedef struct Edge Edge

Function Documentation

◆ clip_line()

void clip_line ( Edge e)
extern

Definition at line 73 of file edges.c.

References Edge::a, Edge::b, Edge::c, Site::coord, doSeg(), Edge::ep, NULL, pxmax, pxmin, pymax, pymin, s1(), Point::x, and Point::y.

Referenced by endpoint(), and voronoi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ edgeinit()

void edgeinit ( void  )
extern

Definition at line 23 of file edges.c.

References efl, freeinit(), and nedges.

Referenced by cleanup(), and voronoi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ endpoint()

void endpoint ( Edge e,
int  lr,
Site s 
)
extern

Definition at line 189 of file edges.c.

References clip_line(), deref(), efl, Edge::ep, le, makefree(), NULL, re, ref(), and Edge::reg.

Referenced by voronoi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gvbisect()

Edge * gvbisect ( Site s1,
Site s2 
)
extern

Definition at line 29 of file edges.c.

References Site::coord, dx, dy, efl, getfree(), nedges, newedge(), NULL, ref(), s1(), Point::x, and Point::y.

Referenced by voronoi().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ pxmax

double pxmax

Definition at line 29 of file edges.h.

◆ pxmin

double pxmin
extern

Definition at line 18 of file edges.c.

Referenced by clip_line(), increaseBoundBox(), and setBoundBox().

◆ pymax

double pymax

Definition at line 29 of file edges.h.

◆ pymin

double pymin

Definition at line 29 of file edges.h.