Graphviz 13.0.0~dev.20241220.2304
|
#include "config.h"
#include <assert.h>
#include <common/geom.h>
#include <common/geomprocs.h>
#include <math.h>
#include <stdbool.h>
#include <util/unreachable.h>
Go to the source code of this file.
Macros | |
#define | SMALL 0.0000000001 |
#define | dot(v, w) (v.x*w.x+v.y*w.y) |
Functions | |
int | lineToBox (pointf p, pointf q, boxf b) |
void | rect2poly (pointf *p) |
pointf | cwrotatepf (pointf p, int cwrot) |
pointf | ccwrotatepf (pointf p, int ccwrot) |
boxf | flip_rec_boxf (boxf b, pointf p) |
double | ptToLine2 (pointf a, pointf b, pointf p) |
int | line_intersect (pointf a, pointf b, pointf c, pointf d, pointf *p) |
API geomprocs.h
Definition in file geom.c.
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().
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 197 of file geom.c.
References boxf::LL, boxf::UR, pointf_s::x, and pointf_s::y.
Referenced by record_path().
Definition at line 235 of file geom.c.
References dot, perp(), scale(), SMALL, and sub_pointf().
Referenced by raySegIntersect().
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 218 of file geom.c.
References dx, dy, SMALL, pointf_s::x, and pointf_s::y.
Referenced by check_control_points().
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().