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

Function buffer_point_4_segments

nodedb-spatial/src/operations.rs:321–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319
320 #[test]
321 fn buffer_point_4_segments() {
322 let circle = st_buffer(&Geometry::point(10.0, 50.0), 500.0, 4);
323 if let Geometry::Polygon { coordinates } = &circle {
324 assert_eq!(coordinates[0].len(), 5); // 4 + close
325 } else {
326 panic!("expected Polygon");
327 }
328 }
329
330 #[test]
331 fn envelope_polygon() {

Callers

nothing calls this directly

Calls 1

st_bufferFunction · 0.85

Tested by

no test coverage detected