#include <stddef.h>
#include <util/list.h>
Go to the source code of this file.
|
#define | SLOPE(p, q) ( ( ( p.y ) - ( q.y ) ) / ( ( p.x ) - ( q.x ) ) ) |
|
#define | MAX(a, b) ( ( a ) > ( b ) ? ( a ) : ( b ) ) |
|
#define | after(v) (((v)==((v)->poly->finish))?((v)->poly->start):((v)+1)) |
|
#define | prior(v) (((v)==((v)->poly->start))?((v)->poly->finish):((v)-1)) |
|
◆ after
#define after |
( |
|
v | ) |
(((v)==((v)->poly->finish))?((v)->poly->start):((v)+1)) |
◆ MAX
#define MAX |
( |
|
a, |
|
|
|
b |
|
) |
| ( ( a ) > ( b ) ? ( a ) : ( b ) ) |
◆ prior
#define prior |
( |
|
v | ) |
(((v)==((v)->poly->start))?((v)->poly->finish):((v)-1)) |
◆ SLOPE
#define SLOPE |
( |
|
p, |
|
|
|
q |
|
) |
| ( ( ( p.y ) - ( q.y ) ) / ( ( p.x ) - ( q.x ) ) ) |
◆ find_intersection()
void find_intersection |
( |
struct vertex * |
l, |
|
|
struct vertex * |
m, |
|
|
intersections_t * |
ilist |
|
) |
| |
Definition at line 155 of file intersect.c.
References intersection::firstv, intpoint(), LIST_APPEND, MAX, online(), vertex::poly, sgnarea(), position::x, intersection::x, position::y, and intersection::y.
◆ find_ints()
void find_ints |
( |
struct vertex |
vertex_list[], |
|
|
size_t |
nvertices, |
|
|
intersections_t * |
ilist |
|
) |
| |
Definition at line 20 of file find_ints.c.
References vertex::active, after, find_intersection(), free(), graphviz_exit(), gt(), gv_alloc(), gv_calloc(), LIST, LIST_APPEND, LIST_DTOR_FREE, LIST_FREE, LIST_GET, LIST_REMOVE, LIST_SIZE, active_edge::name, NULL, and prior.
◆ LIST()