#include <stddef.h>
Go to the source code of this file.
|
#define | MAXINTS |
|
#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 ) ) |
◆ MAXINTS
◆ 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()
Definition at line 159 of file intersect.c.
References intersection::firstp, intersection::firstv, graphviz_exit(), intpoint(), MAX, MAXINTS, data::ninters, online(), vertex::poly, intersection::secondp, intersection::secondv, sgnarea(), position::x, intersection::x, position::y, and intersection::y.
◆ find_ints()
Definition at line 19 of file find_ints.c.
References vertex::active, after, active_edge_list::final, find_intersection(), active_edge_list::first, free(), graphviz_exit(), gt(), gv_alloc(), gv_calloc(), active_edge::last, active_edge::name, active_edge::next, data::ninters, NULL, active_edge_list::number, data::nvertices, and prior.