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

Function different_points

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

Source from the content-addressed store, hash-verified

314
315 #[test]
316 fn different_points() {
317 let a = Geometry::point(0.0, 0.0);
318 let b = Geometry::point(1.0, 1.0);
319 let result = st_intersection(&a, &b);
320 if let Geometry::GeometryCollection { geometries } = &result {
321 assert!(geometries.is_empty());
322 }
323 }
324
325 #[test]
326 fn linestring_clipped_to_polygon() {

Callers

nothing calls this directly

Calls 1

st_intersectionFunction · 0.85

Tested by

no test coverage detected