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

Function envelope_point

nodedb-spatial/src/operations.rs:344–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342
343 #[test]
344 fn envelope_point() {
345 let env = st_envelope(&Geometry::point(5.0, 10.0));
346 if let Geometry::Polygon { coordinates } = &env {
347 // Zero-area bbox → degenerate polygon.
348 assert_eq!(coordinates[0][0], [5.0, 10.0]);
349 assert_eq!(coordinates[0][2], [5.0, 10.0]);
350 } else {
351 panic!("expected Polygon");
352 }
353 }
354
355 #[test]
356 fn union_points() {

Callers

nothing calls this directly

Calls 1

st_envelopeFunction · 0.85

Tested by

no test coverage detected