#include "neato.h"
#include "pathutil.h"
#include <setjmp.h>
Go to the source code of this file.
|
#define | MAXINTS |
|
#define | SLOPE(p, q) ( ( ( p.y ) - ( q.y ) ) / ( ( p.x ) - ( q.x ) ) ) |
|
#define | EQ_PT(v, w) (((v).x == (w).x) && ((v).y == (w).y)) |
|
#define | after(v) (((v)==((v)->poly->finish))?((v)->poly->start):((v)+1)) |
|
#define | prior(v) (((v)==((v)->poly->start))?((v)->poly->finish):((v)-1)) |
|
#define | INBOX(p, bb) ((p.x <= bb.UR.x) && (p.x >= bb.LL.x) && (p.y <= bb.UR.y) && (p.y >= bb.LL.y)) |
|
#define | NESTED(a, b) (INBOX(a.LL,b) && INBOX(a.UR,b)) |
|
#define after |
( |
|
v | ) |
(((v)==((v)->poly->finish))?((v)->poly->start):((v)+1)) |
#define EQ_PT |
( |
|
v, |
|
|
|
w |
|
) |
| (((v).x == (w).x) && ((v).y == (w).y)) |
#define INBOX |
( |
|
p, |
|
|
|
bb |
|
) |
| ((p.x <= bb.UR.x) && (p.x >= bb.LL.x) && (p.y <= bb.UR.y) && (p.y >= bb.LL.y)) |
#define NESTED |
( |
|
a, |
|
|
|
b |
|
) |
| (INBOX(a.LL,b) && INBOX(a.UR,b)) |
#define prior |
( |
|
v | ) |
(((v)==((v)->poly->start))?((v)->poly->finish):((v)-1)) |
#define SLOPE |
( |
|
p, |
|
|
|
q |
|
) |
| ( ( ( p.y ) - ( q.y ) ) / ( ( p.x ) - ( q.x ) ) ) |
Definition at line 412 of file legal.c.
References vertex::active, polygon::bb, polygon::finish, boxf::LL, MAX, MAXDOUBLE, MAXINTS, MIN, N_GNEW, data::npolygons, data::nvertices, Ppoly_t::pn, vertex::poly, vertex::pos, Ppoly_t::ps, polygon::start, boxf::UR, Pxy_t::x, pointf_s::x, Pxy_t::y, and pointf_s::y.
Referenced by compoundEdges().