Graphviz  2.29.20120524.0446
Data Structures | Defines | Typedefs | Functions | Variables
lib/pathplan/route.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <setjmp.h>
#include <math.h>
#include "pathutil.h"
#include "solvers.h"
Include dependency graph for route.c:

Go to the source code of this file.

Data Structures

struct  tna_t
struct  p2e_t
struct  elist_t

Defines

#define EPSILON1   1E-3
#define EPSILON2   1E-6
#define ABS(a)   ((a) >= 0 ? (a) : -(a))
#define prerror(msg)   fprintf (stderr, "libpath/%s:%d: %s\n", __FILE__, __LINE__, (msg))
#define DISTSQ(a, b)
#define POINTSIZE   sizeof (Ppoint_t)
#define LT(pa, pbp)   ((pa.y > pbp->y) || ((pa.y == pbp->y) && (pa.x < pbp->x)))
#define GT(pa, pbp)   ((pa.y < pbp->y) || ((pa.y == pbp->y) && (pa.x > pbp->x)))

Typedefs

typedef struct tna_t tna_t
typedef struct p2e_t p2e_t
typedef struct elist_t elist_t

Functions

int Proutespline (Pedge_t *edges, int edgen, Ppolyline_t input, Ppoint_t *evs, Ppolyline_t *output)

Variables

static int opl

Define Documentation

#define ABS (   a)    ((a) >= 0 ? (a) : -(a))

Definition at line 32 of file route.c.

#define DISTSQ (   a,
 
)
Value:
( \
    (((a).x - (b).x) * ((a).x - (b).x)) + (((a).y - (b).y) * ((a).y - (b).y)) \
)

Definition at line 42 of file route.c.

#define EPSILON1   1E-3

Definition at line 29 of file route.c.

#define EPSILON2   1E-6

Definition at line 30 of file route.c.

#define GT (   pa,
  pbp 
)    ((pa.y < pbp->y) || ((pa.y == pbp->y) && (pa.x > pbp->x)))

Definition at line 49 of file route.c.

Referenced by Proutespline().

#define LT (   pa,
  pbp 
)    ((pa.y > pbp->y) || ((pa.y == pbp->y) && (pa.x < pbp->x)))

Definition at line 48 of file route.c.

Referenced by Proutespline().

#define POINTSIZE   sizeof (Ppoint_t)

Definition at line 46 of file route.c.

#define prerror (   msg)    fprintf (stderr, "libpath/%s:%d: %s\n", __FILE__, __LINE__, (msg))

Definition at line 39 of file route.c.

Referenced by Proutespline().


Typedef Documentation

typedef struct elist_t elist_t
typedef struct p2e_t p2e_t
typedef struct tna_t tna_t

Function Documentation

int Proutespline ( Pedge_t edges,
int  edgen,
Ppolyline_t  input,
Ppoint_t evs,
Ppolyline_t output 
)

Variable Documentation

int opl

Definition at line 73 of file route.c.

Referenced by Proutespline().