Graphviz 13.0.0~dev.20250121.0651
|
geometric functions (e.g. on points and boxes) More...
Go to the source code of this file.
Macros | |
#define | GEOMPROCS_API /* nothing */ |
#define | EXPANDBB(b0, b1) (_Generic((b0), box *: expandbb, boxf *: expandbbf)((b0), (b1))) |
with application to, but no specific dependence on graphs
Definition in file geomprocs.h.
Definition at line 64 of file geomprocs.h.
#define GEOMPROCS_API /* nothing */ |
Definition at line 40 of file geomprocs.h.
Definition at line 79 of file geomprocs.h.
Definition at line 88 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 142 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 124 of file geomprocs.h.
References point::x, and point::y.
Referenced by init_job_pagination(), and setup_page().
Definition at line 133 of file geomprocs.h.
References pointf_s::x, and pointf_s::y.
Referenced by _neato_set_aspect(), init_job_pagination(), and set_aspect().
Definition at line 58 of file geomprocs.h.
References boxf::LL, boxf::UR, pointf_s::x, and pointf_s::y.
Definition at line 44 of file geomprocs.h.
References boxf::LL, boxf::UR, pointf_s::x, and pointf_s::y.
Referenced by bezier_bb(), compute_bb(), and gvrender_usershape().
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 115 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 106 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 146 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 155 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 97 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().