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

Function msRectContained

mapsearch.c:80–86  ·  view source on GitHub ↗

** Returns MS_TRUE if rectangle a is contained in rectangle b */

Source from the content-addressed store, hash-verified

78** Returns MS_TRUE if rectangle a is contained in rectangle b
79*/
80int msRectContained(rectObj *a, rectObj *b)
81{
82 if(a->minx >= b->minx && a->maxx <= b->maxx)
83 if(a->miny >= b->miny && a->maxy <= b->maxy)
84 return(MS_TRUE);
85 return(MS_FALSE);
86}
87
88/*
89** Merges rect b into rect a. Rect a changes, b does not.

Callers 5

treeNodeAddShapeIdFunction · 0.85
msQueryByRectFunction · 0.85
msBuildWMSLayerURLFunction · 0.85
treeNodeAddShapeFunction · 0.85
msShapefileWhichShapesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected