** Returns MS_TRUE if rectangles a and b overlap */
| 44 | ** Returns MS_TRUE if rectangles a and b overlap |
| 45 | */ |
| 46 | int 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 |
no outgoing calls
no test coverage detected