Graphviz 13.0.0~dev.20241220.2304
|
#include <assert.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <pathplan/pathutil.h>
#include <pathplan/solvers.h>
Go to the source code of this file.
Data Structures | |
struct | tna_t |
Macros | |
#define | EPSILON1 1E-3 |
#define | EPSILON2 1E-6 |
#define | DISTSQ(a, b) |
#define | POINTSIZE sizeof (Ppoint_t) |
Typedefs | |
typedef struct tna_t | tna_t |
Functions | |
static int | reallyroutespline (Pedge_t *, size_t, Ppoint_t *, int, Ppoint_t, Ppoint_t) |
static int | mkspline (Ppoint_t *, int, tna_t *, Ppoint_t, Ppoint_t, Ppoint_t *, Ppoint_t *, Ppoint_t *, Ppoint_t *) |
static int | splinefits (Pedge_t *, size_t, Ppoint_t, Pvector_t, Ppoint_t, Pvector_t, Ppoint_t *, int) |
static int | splineisinside (Pedge_t *, size_t, Ppoint_t *) |
static int | splineintersectsline (Ppoint_t *, Ppoint_t *, double *) |
static void | points2coeff (double, double, double, double, double *) |
static void | addroot (double, double *, int *) |
static Pvector_t | normv (Pvector_t) |
static int | growops (size_t) |
static Ppoint_t | add (Ppoint_t, Ppoint_t) |
static Ppoint_t | sub (Ppoint_t, Ppoint_t) |
static double | dist (Ppoint_t, Ppoint_t) |
static Ppoint_t | scale (Ppoint_t, double) |
static double | dot (Ppoint_t, Ppoint_t) |
static double | B0 (double t) |
static double | B1 (double t) |
static double | B2 (double t) |
static double | B3 (double t) |
static double | B01 (double t) |
static double | B23 (double t) |
int | Proutespline (Pedge_t *barriers, size_t n_barriers, Ppolyline_t input_route, Ppoint_t endpoint_slopes[2], Ppolyline_t *output_route) |
static double | dist_n (Ppoint_t *p, int n) |
Variables | |
static Ppoint_t * | ops |
static size_t | opn |
static size_t | opl |
#define DISTSQ | ( | a, | |
b | |||
) |
Definition at line 426 of file route.c.
References Pxy_t::x, and Pxy_t::y.
Referenced by eval(), mkspline(), and reallyroutespline().
|
static |
Definition at line 398 of file route.c.
Referenced by splineintersectsline().
|
static |
Definition at line 457 of file route.c.
Referenced by reallyroutespline().
|
static |
Definition at line 480 of file route.c.
Referenced by mkspline().
|
static |
Definition at line 463 of file route.c.
Referenced by reallyroutespline().
|
static |
Definition at line 469 of file route.c.
Referenced by reallyroutespline().
|
static |
Definition at line 486 of file route.c.
Referenced by mkspline().
|
static |
Definition at line 475 of file route.c.
Referenced by reallyroutespline().
Definition at line 438 of file route.c.
References dx, dy, Pxy_t::x, and Pxy_t::y.
Referenced by mkspline(), and reallyroutespline().
|
static |
Definition at line 195 of file route.c.
Referenced by splinefits().
|
static |
Definition at line 416 of file route.c.
References opn, ops, and POINTSIZE.
Referenced by Proutespline(), and splinefits().
Definition at line 404 of file route.c.
References Pxy_t::x, and Pxy_t::y.
Referenced by Proutespline(), and reallyroutespline().
|
static |
Definition at line 389 of file route.c.
Referenced by splineintersectsline().
int Proutespline | ( | Pedge_t * | barriers, |
size_t | n_barriers, | ||
Ppolyline_t | input_route, | ||
Ppoint_t | endpoint_slopes[2], | ||
Ppolyline_t * | output_route | ||
) |
Definition at line 69 of file route.c.
References growops(), normv(), opl, ops, Ppoly_t::pn, Ppoly_t::ps, and reallyroutespline().
Referenced by genroute(), makeSpline(), routesplines_(), simpleSplineRoute(), and vgpanecmd().
|
static |
Definition at line 96 of file route.c.
References tna_t::a, add(), B0(), B1(), B2(), B3(), dist(), mkspline(), normv(), NULL, reallyroutespline(), scale(), splinefits(), sub, tna_t::t, Pxy_t::x, and Pxy_t::y.
Referenced by Proutespline(), and reallyroutespline().
Definition at line 446 of file route.c.
References Pxy_t::x, and Pxy_t::y.
Referenced by mkspline(), and reallyroutespline().
Definition at line 309 of file route.c.
References addroot(), points2coeff(), solve3(), Pxy_t::x, and Pxy_t::y.
Referenced by splineisinside().
Definition at line 278 of file route.c.
References Pedge_t::a, Pedge_t::b, DISTSQ, EPSILON1, EPSILON2, splineintersectsline(), Pxy_t::x, and Pxy_t::y.
Referenced by splinefits().
|
static |
Definition at line 34 of file route.c.
Referenced by Proutespline(), and splinefits().
|
static |
Definition at line 34 of file route.c.
Referenced by growops(), and Pobspath().
|
static |
Definition at line 33 of file route.c.
Referenced by growops(), parseOp(), parseXDotFOn(), Pobspath(), Proutespline(), and splinefits().