(chunk: &[TileEntry])
| 120 | } |
| 121 | |
| 122 | fn chunk_bbox(chunk: &[TileEntry]) -> BBox { |
| 123 | let mut bbox = BBox { |
| 124 | min: vec![], |
| 125 | max: vec![], |
| 126 | }; |
| 127 | for e in chunk { |
| 128 | bbox.extend(&BBox::from_mbr(&e.mbr)); |
| 129 | } |
| 130 | bbox |
| 131 | } |
| 132 | |
| 133 | #[cfg(test)] |
| 134 | mod tests { |