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

Function point_inside_polygon

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

Source from the content-addressed store, hash-verified

288
289 #[test]
290 fn point_inside_polygon() {
291 let poly = square(0.0, 10.0);
292 let pt = Geometry::point(5.0, 5.0);
293 let result = st_intersection(&poly, &pt);
294 assert_eq!(result.geometry_type(), "Point");
295 }
296
297 #[test]
298 fn point_outside_polygon() {

Callers

nothing calls this directly

Calls 2

st_intersectionFunction · 0.85
squareFunction · 0.70

Tested by

no test coverage detected