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

Function point_outside_polygon

nodedb-spatial/src/predicates/intersection.rs:298–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

296
297 #[test]
298 fn point_outside_polygon() {
299 let poly = square(0.0, 10.0);
300 let pt = Geometry::point(20.0, 20.0);
301 let result = st_intersection(&poly, &pt);
302 if let Geometry::GeometryCollection { geometries } = &result {
303 assert!(geometries.is_empty());
304 }
305 }
306
307 #[test]
308 fn identical_points() {

Callers

nothing calls this directly

Calls 2

st_intersectionFunction · 0.85
squareFunction · 0.70

Tested by

no test coverage detected