awips2/ncep/gov.noaa.nws.ncep.viz.rsc.ncgrid/dgdriv_c/proto_cgr.h
Brad Gonzales 632020195a Issue #628 committing PGEN code received from Plummer on 4-19-2012.
Former-commit-id: fda897d2d0 [formerly 253e8bc948] [formerly fda897d2d0 [formerly 253e8bc948] [formerly 295cbf95e5 [formerly 0816cd253c86acc699cb90866131619c4679f631]]]
Former-commit-id: 295cbf95e5
Former-commit-id: 2a3bf4ec32 [formerly ae3d17c698]
Former-commit-id: a610dcde73
2012-05-10 16:50:45 -05:00

87 lines
2 KiB
C
Executable file

/************************************************************************
* proto_cgr.h *
* *
* This include file contains private function prototypes for the *
* c files in the CGR library. *
* *
* Log: *
** *
* D.W.Plummer/NCEP 11/03 *
* D.W.Plummer/NCEP 2/04 Added polyp_getmap *
***********************************************************************/
#ifndef PROTO_CGR
#define PROTO_CGR
/*
* CGR prototypes
*/
POLYPOINT * polyp_create ( int *npin,
float *xin,
float *yin );
void polyp_destroy ( POLYPOINT *poly );
void polyp_dump ( POLYPOINT *start );
void polyp_dup ( POLYGON *poly0,
POLYGON *poly1,
float tol );
POLYPOINT * polyp_findpt ( POINT *point,
POLYPOINT *first );
void polyp_freepts ( int *iret );
void polyp_getpts ( POLYPOINT *poly,
int *npo,
float *xo,
float *yo );
void polyp_getmap ( MPOLYGON *mpoly0,
MPOLYGON *mpoly1,
int nmap,
float *xmap0,
float *ymap0,
float *xmap1,
float *ymap1 );
void polyp_link ( POLYGON *poly0,
POLYGON *poly1,
POLYGON *poly_out,
int *iret );
POINT * polyp_newpt ( float xo,
float yo );
int polyp_polyint ( POLYGON *p0,
POLYGON *p1 );
void polyp_rmpts ( POLYPOINT *p0,
POLYPOINT *p1 );
void polyp_segint ( SEGMENT *s0,
SEGMENT *s1,
int *intrsct,
double *xint,
double *yint,
int *iret );
void polyp_scale ( POLYPOINT *start );
double polyp_tdist ( POLYPOINT *start,
POLYPOINT *end );
void polyp_union ( int *process_type,
POLYGON *poly0,
POLYGON *poly1,
POLYGON *poly_out,
int *iret );
void polyp_unscale ( POLYPOINT *start );
#endif /* PROTO_CGR */