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

Function square

nodedb-spatial/src/predicates/intersection.rs:227–235  ·  view source on GitHub ↗
(min: f64, max: f64)

Source from the content-addressed store, hash-verified

225 use super::*;
226
227 fn square(min: f64, max: f64) -> Geometry {
228 Geometry::polygon(vec![vec![
229 [min, min],
230 [max, min],
231 [max, max],
232 [min, max],
233 [min, min],
234 ]])
235 }
236
237 #[test]
238 fn overlapping_squares() {

Callers 6

overlapping_squaresFunction · 0.70
contained_squareFunction · 0.70
disjoint_returns_emptyFunction · 0.70
point_inside_polygonFunction · 0.70
point_outside_polygonFunction · 0.70

Calls

no outgoing calls

Tested by 6

overlapping_squaresFunction · 0.56
contained_squareFunction · 0.56
disjoint_returns_emptyFunction · 0.56
point_inside_polygonFunction · 0.56
point_outside_polygonFunction · 0.56