Graphviz 13.0.0~dev.20241220.2304
|
#include <assert.h>
#include <cgraph/list.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <common/render.h>
#include <pathplan/pathplan.h>
#include <util/alloc.h>
Go to the source code of this file.
Data Structures | |
struct | ellipse_t |
Macros | |
#define | TWOPI (2*M_PI) |
#define | RationalFunction(x, c) ((x * (x * c[0] + c[1]) + c[2]) / (x + c[3])) |
Typedefs | |
typedef double | erray_t[2][4][4] |
Functions | |
static void | initEllipse (ellipse_t *ep, double cx, double cy, double a, double b, double lambda1, double lambda2) |
static double | estimateError (ellipse_t *ep, double etaA, double etaB) |
static void | moveTo (bezier_path_t *polypath, double x, double y) |
static void | curveTo (bezier_path_t *polypath, double x1, double y1, double x2, double y2, double x3, double y3) |
static void | lineTo (bezier_path_t *polypath, double x, double y) |
static void | endPath (bezier_path_t *polypath) |
static Ppolyline_t * | genEllipticPath (ellipse_t *ep) |
Ppolyline_t * | ellipticWedge (pointf ctr, double xsemi, double ysemi, double angle0, double angle1) |
Variables | |
static erray_t | coeffs3Low |
static erray_t | coeffs3High |
static double | safety3 [] |
#define RationalFunction | ( | x, | |
c | |||
) | ((x * (x * c[0] + c[1]) + c[2]) / (x + c[3])) |
|
static |
Definition at line 182 of file ellipse.c.
Referenced by genEllipticPath(), and lineTo().
Ppolyline_t * ellipticWedge | ( | pointf | ctr, |
double | xsemi, | ||
double | ysemi, | ||
double | angle0, | ||
double | angle1 | ||
) |
Definition at line 298 of file ellipse.c.
References genEllipticPath(), initEllipse(), pointf_s::x, and pointf_s::y.
Referenced by wedgedEllipse().
|
static |
Definition at line 194 of file ellipse.c.
References lineTo(), pointf_s::x, and pointf_s::y.
Referenced by find_longest_path(), and genEllipticPath().
|
static |
Definition at line 145 of file ellipse.c.
References ellipse_t::a, ellipse_t::b, coeffs3High, coeffs3Low, RationalFunction, and safety3.
Referenced by genEllipticPath().
|
static |
Definition at line 204 of file ellipse.c.
References ellipse_t::a, alpha, ellipse_t::b, curveTo(), ellipse_t::cx, ellipse_t::cy, endPath(), estimateError(), ellipse_t::eta1, ellipse_t::eta2, gv_alloc(), lineTo(), M_PI, moveTo(), Ppoly_t::pn, and Ppoly_t::ps.
Referenced by ellipticWedge().
|
static |
Definition at line 70 of file ellipse.c.
References ellipse_t::a, ellipse_t::b, ellipse_t::cx, ellipse_t::cy, ellipse_t::eta1, ellipse_t::eta2, M_PI, and TWOPI.
Referenced by ellipticWedge().
|
static |
Definition at line 189 of file ellipse.c.
References curveTo(), pointf_s::x, and pointf_s::y.
Referenced by endPath(), and genEllipticPath().
|
static |
Definition at line 178 of file ellipse.c.
Referenced by genEllipticPath().
|
static |
Definition at line 113 of file ellipse.c.
Referenced by estimateError().
|
static |
Definition at line 95 of file ellipse.c.
Referenced by estimateError().
|
static |
Definition at line 130 of file ellipse.c.
Referenced by estimateError().