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

Function polygon_to_polygon_separated

nodedb-spatial/src/predicates/distance.rs:383–393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381
382 #[test]
383 fn polygon_to_polygon_separated() {
384 let far = Geometry::polygon(vec![vec![
385 [5.0, 5.0],
386 [6.0, 5.0],
387 [6.0, 6.0],
388 [5.0, 6.0],
389 [5.0, 5.0],
390 ]]);
391 let d = st_distance(&square(), &far);
392 assert!(d > 100_000.0, "got {d}");
393 }
394}

Callers

nothing calls this directly

Calls 2

st_distanceFunction · 0.85
squareFunction · 0.70

Tested by

no test coverage detected