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

Function point_to_point_same

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

Source from the content-addressed store, hash-verified

302
303 #[test]
304 fn point_to_point_same() {
305 let d = st_distance(&Geometry::point(5.0, 5.0), &Geometry::point(5.0, 5.0));
306 assert!(d < 0.01);
307 }
308
309 #[test]
310 fn point_inside_polygon_zero_distance() {

Callers

nothing calls this directly

Calls 1

st_distanceFunction · 0.85

Tested by

no test coverage detected