MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / chunk_bbox

Function chunk_bbox

nodedb-array/src/segment/mbr_index/build.rs:122–131  ·  view source on GitHub ↗
(chunk: &[TileEntry])

Source from the content-addressed store, hash-verified

120}
121
122fn 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)]
134mod tests {

Callers 1

buildMethod · 0.85

Calls 1

extendMethod · 0.45

Tested by

no test coverage detected