MCPcopy Create free account
hub / github.com/ecto/muni / rect_polygon

Function rect_polygon

depot/dispatch/src/coverage.rs:246–253  ·  view source on GitHub ↗
(w: f64, h: f64)

Source from the content-addressed store, hash-verified

244 use super::*;
245
246 fn rect_polygon(w: f64, h: f64) -> Vec<Waypoint> {
247 vec![
248 Waypoint { x: 0.0, y: 0.0, theta: None },
249 Waypoint { x: w, y: 0.0, theta: None },
250 Waypoint { x: w, y: h, theta: None },
251 Waypoint { x: 0.0, y: h, theta: None },
252 ]
253 }
254
255 #[test]
256 fn rectangular_coverage() {

Callers 5

rectangular_coverageFunction · 0.85
overlap_reduces_spacingFunction · 0.85
narrow_corridorFunction · 0.85
rejects_invalid_inputFunction · 0.85

Calls

no outgoing calls

Tested by 5

rectangular_coverageFunction · 0.68
overlap_reduces_spacingFunction · 0.68
narrow_corridorFunction · 0.68
rejects_invalid_inputFunction · 0.68