Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
edges.h
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <neatogen/site.h>
18
19 typedef struct Edge {
20 double a, b, c; /* edge on line ax + by = c */
21 Site *ep[2]; /* endpoints (vertices) of edge; initially NULL */
22 Site *reg[2]; /* sites forming edge */
24
25#define le 0
26#define re 1
27
28 extern double pxmin, pxmax, pymin, pymax; /* clipping window */
29 extern void edgeinit(void);
30 extern void endpoint(Edge *, int, Site *);
31 extern void clip_line(Edge * e);
32 extern Edge *gvbisect(Site *, Site *);
33
34#ifdef __cplusplus
35}
36#endif
double pymin
Definition edges.h:28
double pymax
Definition edges.h:28
double pxmin
Definition edges.c:18
void edgeinit(void)
Definition edges.c:22
void endpoint(Edge *, int, Site *)
Definition edges.c:185
void clip_line(Edge *e)
Definition edges.c:69
Edge * gvbisect(Site *, Site *)
Definition edges.c:27
double pxmax
Definition edges.h:28
Definition edges.h:19
Site * ep[2]
Definition edges.h:21
double b
Definition edges.h:20
double c
Definition edges.h:20
Site * reg[2]
Definition edges.h:22
double a
Definition edges.h:20
Definition site.h:22