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

Function make_rect

nodedb-spatial/src/rtree/tree.rs:160–165  ·  view source on GitHub ↗
(id: u64, min_lng: f64, min_lat: f64, max_lng: f64, max_lat: f64)

Source from the content-addressed store, hash-verified

158 }
159
160 fn make_rect(id: u64, min_lng: f64, min_lat: f64, max_lng: f64, max_lat: f64) -> RTreeEntry {
161 RTreeEntry {
162 id,
163 bbox: BoundingBox::new(min_lng, min_lat, max_lng, max_lat),
164 }
165 }
166
167 #[test]
168 fn empty_tree() {

Callers 1

rect_overlap_searchFunction · 0.85

Calls

no outgoing calls

Tested by 1

rect_overlap_searchFunction · 0.68