Graphviz 13.0.0~dev.20241220.2304
|
geometric functions (e.g. on points and boxes) More...
Go to the source code of this file.
Macros | |
#define | GEOMPROCS_API /* nothing */ |
Functions | |
GEOMPROCS_API boxf | flip_rec_boxf (boxf b, pointf p) |
GEOMPROCS_API double | ptToLine2 (pointf l1, pointf l2, pointf p) |
GEOMPROCS_API int | lineToBox (pointf p1, pointf p2, boxf b) |
GEOMPROCS_API pointf | ccwrotatepf (pointf p, int ccwrot) |
GEOMPROCS_API pointf | cwrotatepf (pointf p, int cwrot) |
GEOMPROCS_API void | rect2poly (pointf *p) |
GEOMPROCS_API int | line_intersect (pointf a, pointf b, pointf c, pointf d, pointf *p) |
static point | add_point (point p, point q) |
static pointf | add_pointf (pointf p, pointf q) |
static pointf | sub_pointf (pointf p, pointf q) |
static pointf | mid_pointf (pointf p, pointf q) |
static pointf | interpolate_pointf (double t, pointf p, pointf q) |
static point | exch_xy (point p) |
static pointf | exch_xyf (pointf p) |
static bool | boxf_overlap (boxf b0, boxf b1) |
static pointf | perp (pointf p) |
static pointf | scale (double c, pointf p) |
with application to, but no specific dependence on graphs
Definition in file geomprocs.h.
#define GEOMPROCS_API /* nothing */ |
Definition at line 39 of file geomprocs.h.
Definition at line 54 of file geomprocs.h.
Definition at line 63 of file geomprocs.h.
References pointf_s::x, and pointf_s::y.
Referenced by addEndpoint(), arrow_type_crow0(), arrow_type_diamond0(), beginpath(), compute_bb(), endpath(), gen_fields(), genPoly(), getPath(), make_flat_labeled_edge(), makeLineEdge(), makeSimpleFlat(), makeSimpleFlatLabels(), makeStraightEdges(), Mcircle_hack(), overlap_label(), packRects(), record_inside(), spline_edges_(), and transformf().
Definition at line 117 of file geomprocs.h.
References OVERLAP.
Referenced by edge_in_box(), emit_xdot(), node_in_box(), and overlap_edge().
GEOMPROCS_API pointf ccwrotatepf | ( | pointf | p, |
int | ccwrot | ||
) |
Definition at line 172 of file geom.c.
References UNREACHABLE, pointf_s::x, and pointf_s::y.
Referenced by compassPoint(), epsf_inside(), map_point(), point_inside(), poly_inside(), record_inside(), and star_inside().
GEOMPROCS_API pointf cwrotatepf | ( | pointf | p, |
int | cwrot | ||
) |
Definition at line 147 of file geom.c.
References UNREACHABLE, pointf_s::x, and pointf_s::y.
Referenced by compassPoint(), and compassPort().
Definition at line 99 of file geomprocs.h.
References point::x, and point::y.
Referenced by init_job_pagination(), and setup_page().
Definition at line 108 of file geomprocs.h.
References pointf_s::x, and pointf_s::y.
Referenced by _neato_set_aspect(), init_job_pagination(), and set_aspect().
GEOMPROCS_API boxf flip_rec_boxf | ( | boxf | b, |
pointf | p | ||
) |
Definition at line 197 of file geom.c.
References boxf::LL, boxf::UR, pointf_s::x, and pointf_s::y.
Referenced by record_path().
Definition at line 90 of file geomprocs.h.
References pointf_s::x, and pointf_s::y.
Referenced by alloc_interpolation_points().
Definition at line 235 of file geom.c.
References dot, perp(), scale(), SMALL, and sub_pointf().
Referenced by raySegIntersect().
GEOMPROCS_API int lineToBox | ( | pointf | p1, |
pointf | p2, | ||
boxf | b | ||
) |
Definition at line 47 of file geom.c.
References BETWEEN, INSIDE, boxf::LL, boxf::UR, pointf_s::x, and pointf_s::y.
Referenced by overlap_bezier().
Definition at line 81 of file geomprocs.h.
References pointf_s::x, and pointf_s::y.
Referenced by bend(), gen_fields(), gvrender_ellipse(), layout(), makeCompoundEdge(), overlap_node(), and wedgedEllipse().
Definition at line 121 of file geomprocs.h.
References pointf_s::x, and pointf_s::y.
Referenced by line_intersect(), and makeStraightEdges().
GEOMPROCS_API double ptToLine2 | ( | pointf | l1, |
pointf | l2, | ||
pointf | p | ||
) |
Definition at line 218 of file geom.c.
References dx, dy, SMALL, pointf_s::x, and pointf_s::y.
Referenced by check_control_points().
GEOMPROCS_API void rect2poly | ( | pointf * | p | ) |
Definition at line 139 of file geom.c.
References pointf_s::x, and pointf_s::y.
Referenced by emit_map_rect(), emit_page(), map_label(), and map_point().
Definition at line 130 of file geomprocs.h.
References pointf_s::x, and pointf_s::y.
Referenced by _neato_set_aspect(), arrow_type_diamond0(), cairogen_begin_page(), computeScaleXY(), D2E(), emit_html_img(), gdgen_begin_page(), gvrender_ptf(), gvrender_ptf_A(), line_intersect(), overlap_arrow(), scale_clamp(), and set_aspect().
Definition at line 72 of file geomprocs.h.
References pointf_s::x, and pointf_s::y.
Referenced by arrow_type_crow0(), arrow_type_diamond0(), arrow_type_normal0(), arrow_type_tee(), compute_bb(), genPoly(), idealsize(), layout(), line_intersect(), overlap_label(), overlap_node(), record_inside(), set_aspect(), and wedgedEllipse().