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

Function ring_edges_closed

nodedb-spatial/src/predicates/edge.rs:286–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284
285 #[test]
286 fn ring_edges_closed() {
287 let ring = vec![
288 [0.0, 0.0],
289 [10.0, 0.0],
290 [10.0, 10.0],
291 [0.0, 10.0],
292 [0.0, 0.0],
293 ];
294 let edges = ring_edges(&ring);
295 assert_eq!(edges.len(), 4);
296 }
297}

Callers

nothing calls this directly

Calls 1

ring_edgesFunction · 0.85

Tested by

no test coverage detected