MCPcopy Index your code
hub / github.com/MapServer/MapServer / msRectOverlap

Function msRectOverlap

mapsearch.c:46–53  ·  view source on GitHub ↗

** Returns MS_TRUE if rectangles a and b overlap */

Source from the content-addressed store, hash-verified

44** Returns MS_TRUE if rectangles a and b overlap
45*/
46int msRectOverlap(rectObj *a, rectObj *b)
47{
48 if(a->minx > b->maxx) return(MS_FALSE);
49 if(a->maxx < b->minx) return(MS_FALSE);
50 if(a->miny > b->maxy) return(MS_FALSE);
51 if(a->maxy < b->miny) return(MS_FALSE);
52 return(MS_TRUE);
53}
54
55/*
56** Computes the intersection of two rectangles, updating the first

Callers 15

treeCollectShapeIdsFunction · 0.85
searchDiskTreeNodeFunction · 0.85
msFilterTreeSearchFunction · 0.85
msBuildWMSLayerURLFunction · 0.85
msPrepareWMSLayerRequestFunction · 0.85
findRelatedShapesFunction · 0.85
findRelatedShapesRemoveFunction · 0.85
collectClusterShapesFunction · 0.85
RebuildClustersFunction · 0.85
msShapefileWhichShapesFunction · 0.85
msWCSGetCoverageFunction · 0.85
msWCSGetCoverage20Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected