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
14
extern
"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 */
23
}
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
pymin
double pymin
Definition
edges.h:28
pymax
double pymax
Definition
edges.h:28
pxmin
double pxmin
Definition
edges.c:18
edgeinit
void edgeinit(void)
Definition
edges.c:22
endpoint
void endpoint(Edge *, int, Site *)
Definition
edges.c:185
clip_line
void clip_line(Edge *e)
Definition
edges.c:69
gvbisect
Edge * gvbisect(Site *, Site *)
Definition
edges.c:27
pxmax
double pxmax
Definition
edges.h:28
site.h
Edge
Definition
edges.h:19
Edge::ep
Site * ep[2]
Definition
edges.h:21
Edge::b
double b
Definition
edges.h:20
Edge::c
double c
Definition
edges.h:20
Edge::reg
Site * reg[2]
Definition
edges.h:22
Edge::a
double a
Definition
edges.h:20
Site
Definition
site.h:22
lib
neatogen
edges.h
Generated by
1.9.8