GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72990
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
clip.h
Go to the documentation of this file.
1 
2 #ifndef DISPLAYLIB_CLIP_H
3 #define DISPLAYLIB_CLIP_H
4 
5 #include "path.h"
6 
7 struct plane
8 {
9  double x, y, k;
10 };
11 
12 struct clip
13 {
14  struct plane left, rite, bot, top;
15 };
16 
17 struct rectangle
18 {
19  double left, rite, bot, top;
20 };
21 
22 void D__set_clip_planes(struct clip *, const struct rectangle *);
23 void D__cull_path(struct path *, const struct path *, const struct clip *);
24 void D__clip_path(struct path *, const struct path *, const struct clip *);
25 
26 #endif
27 
void D__set_clip_planes(struct clip *clip, const struct rectangle *rect)
Definition: clip.c:110
Definition: clip.h:12
double y
Definition: clip.h:9
double top
Definition: clip.h:19
void D__cull_path(struct path *dst, const struct path *src, const struct clip *clip)
Definition: clip.c:129
double k
Definition: clip.h:9
double rite
Definition: clip.h:19
void D__clip_path(struct path *dst, const struct path *src, const struct clip *clip)
Definition: clip.c:145
struct plane left rite bot top
Definition: clip.h:14
double x
Definition: clip.h:9
Definition: clip.h:17
double bot
Definition: clip.h:19
Definition: path.h:16
Definition: clip.h:7
double left
Definition: clip.h:19