awips2/ncep/gov.noaa.nws.ncep.viz.rsc.ncgrid/dgdriv_c/proto_cgr.h
Steve Harris 40aa780b3d 12.4.1-10 baseline
Former-commit-id: 7fa9dbd5fb [formerly 4bfbdad17d] [formerly 9f8cb727a5] [formerly 8485b90ff8 [formerly 9f8cb727a5 [formerly bf53d06834caa780226121334ac1bcf0534c3f16]]]
Former-commit-id: 8485b90ff8
Former-commit-id: 73930fb29d0c1e91204e76e6ebfdbe757414f319 [formerly a28d70b5c5]
Former-commit-id: 33a67cdd82
2012-05-01 18:06:13 -05:00

87 lines
2 KiB
C

/************************************************************************
* 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 */