Graphviz 14.0.2~dev.20251008.0253
Loading...
Searching...
No Matches
edges.h File Reference
#include <stdbool.h>
#include <util/api.h>
#include <util/arena.h>
#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

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

Variables

double pxmin
 
double pxmax
 
double pymin
 
double pymax
 

Macro Definition Documentation

◆ le

#define le   0

Definition at line 29 of file edges.h.

◆ re

#define re   1

Definition at line 30 of file edges.h.

Typedef Documentation

◆ Edge

typedef struct Edge Edge

Function Documentation

◆ clip_line()

PRIVATE void clip_line ( Edge e)

Definition at line 59 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:

◆ endpoint()

PRIVATE void endpoint ( Edge e,
int  lr,
Site s,
arena_t allocator 
)

Definition at line 175 of file edges.c.

References clip_line(), Edge::ep, gv_arena_free(), NULL, and re.

Referenced by voronoi().

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

◆ gvbisect()

PRIVATE Edge * gvbisect ( Site s1,
Site s2,
arena_t allocator 
)

Definition at line 21 of file edges.c.

References ARENA_NEW, Site::coord, dx, dy, newedge(), NULL, 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 32 of file edges.h.

◆ pxmin

double pxmin
extern

Definition at line 19 of file edges.c.

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

◆ pymax

double pymax

Definition at line 32 of file edges.h.

◆ pymin

double pymin

Definition at line 32 of file edges.h.