Home | Develop | Download | Contact
pdsregionrect.h
1 /*
2  * pdsregionrect.h
3  *
4  * Copyright 2018 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  */
22 
29 #ifndef __PDSREGIONRECT_H__
30 #define __PDSREGIONRECT_H__
31 
32 
33 #include <pds/pdsraglobal.h>
34 
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
45 #ifndef PDS_OK
46 
50  #define PDS_OK 1
51 #endif
52 
53 #ifndef PDS_WRONG
54 
58  #define PDS_WRONG 0
59 #endif
60 
61 
69 typedef struct
70 {
79 
81 
97 
99 
115 
116 
126 
127 
129 
144 
145 
154 
155 
157 
169 
176 
183 int pds_region_rect_fprintf(FILE *fd, PdsRegionRect R);
184 
192 
193 
195 
196 
197 
202 #ifdef __cplusplus
203 }
204 #endif
205 
206 
207 #endif /* __PDSREGIONRECT_H__ */
unsigned int PdsRaNatural
Definition: pdsraglobal.h:59
int pds_region_rect_is_inside(PdsRegionRect Rin, PdsRegionRect R)
Indica si la region Rin está dentro de la region R.
PdsRegionRect pds_region_rect_move(PdsRegionRect R, PdsRaInteger L0, PdsRaInteger C0)
Crea una variable PdsRegionRect, siendo esta una version de R movimentada a (L0,C0).
PdsRaInteger C0
Definition: pdsregionrect.h:74
int pds_region_rect_printf(PdsRegionRect R)
Imprime la variable PdsRegionRect.
int pds_region_rect_intersection(PdsRegionRect A, PdsRegionRect B, PdsRegionRect *R)
Intersecta dos regiones.
PdsRegionRect pds_region_rect(PdsRaInteger L0, PdsRaInteger C0, PdsRaNatural Nlin, PdsRaNatural Ncol)
Crea la variable PdsRegionRect.
La estructura tipo PdsRegionRect . Esta estructura genera unnumero complejo. Para usar incluir pdsreg...
Definition: pdsregionrect.h:69
int pds_region_rect_stylized_fprintf(FILE *fd, PdsRegionRect R)
Imprime en un FILE la variable PdsRegionRect.
PdsRaNatural Ncol
Definition: pdsregionrect.h:78
PdsRegionRect pds_region_rect_transfer(PdsRegionRect R, PdsRaInteger L, PdsRaInteger C)
Crea una variable PdsRegionRect a partir de suma R+(L,C).
PdsRaNatural Nlin
Definition: pdsregionrect.h:76
PdsRaInteger L0
Definition: pdsregionrect.h:72
int pds_region_rect_stylized_printf(PdsRegionRect R)
Imprime la variable PdsRegionRect.
int PdsRaInteger
Definition: pdsraglobal.h:54
int pds_region_rect_fprintf(FILE *fd, PdsRegionRect R)
Imprime en un FILE la variable PdsRegionRect.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed