Graphviz 14.0.2~dev.20251008.0253
|
Go to the source code of this file.
Functions | |
static int | sign (double v) |
static void | sgnarea (struct vertex *l, struct vertex *m, int i[]) |
static int | between (double f, double g, double h) |
static int | online (struct vertex *l, struct vertex *m, int i) |
static int | intpoint (struct vertex *l, struct vertex *m, double *x, double *y, int cond) |
void | find_intersection (struct vertex *l, struct vertex *m, intersections_t *ilist) |
detect whether lines l and m intersect | |
|
static |
where is g
relative to the interval delimited by f
and h
?
The order of f
and h
is not assumed. That is, the interval defined may be (f, h)
or (h, f)
depending on whether f
is less than or greater than h
.
f | First boundary of the interval |
g | Value to test |
h | Second boundary of the interval |
Definition at line 56 of file intersect.c.
Referenced by online().
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.
|
static |
Definition at line 90 of file intersect.c.
References after, le, online(), vertex::pos, SLOPE, UNREACHABLE, position::x, and position::y.
Referenced by find_intersection().
Definition at line 79 of file intersect.c.
References after, between(), vertex::pos, position::x, and position::y.
Referenced by find_intersection(), and intpoint().
Definition at line 27 of file intersect.c.
References after, vertex::pos, sign(), pointf_s::x, and pointf_s::y.
Referenced by find_intersection().
|
static |
Definition at line 16 of file intersect.c.
Referenced by sgnarea().