| 274 | } |
| 275 | |
| 276 | bool MultiMapManager::findIntersect( |
| 277 | const int& min1, const int& max1, const int& min2, const int max2, int& minr, int& maxr) |
| 278 | { |
| 279 | minr = max(min1, min2); |
| 280 | maxr = min(max1, max2); |
| 281 | if (minr <= maxr) |
| 282 | return true; |
| 283 | return false; |
| 284 | } |
| 285 | |
| 286 | void MultiMapManager::sendChunks( |
| 287 | const int& chunk_drone_id, const int& to_drone_id, const vector<int>& idx_list) |