1/* vim:set shiftwidth=4 ts=8: */
2
3/*************************************************************************
4 * Copyright (c) 2011 AT&T Intellectual Property
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *
10 * Contributors: See CVS logs. Details at http://www.graphviz.org/
11 *************************************************************************/
12
13#ifndef RECTANGLE_H
14#define RECTANGLE_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20typedef struct Rect {
21 int boundary[NUMSIDES];
22} Rect_t;
23
24void InitRect(Rect_t * r);
25#ifdef RTDEBUG
26void PrintRect(Rect_t *);
27#endif
28unsigned int RectArea(Rect_t *);
29int Overlap(Rect_t *, Rect_t *);
30int Contained(Rect_t *, Rect_t *);
31Rect_t CombineRect(Rect_t *, Rect_t *);
32Rect_t NullRect(void);
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif /*RECTANGLE_H */
39