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

Function point_to_segment_endpoint

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

Source from the content-addressed store, hash-verified

266
267 #[test]
268 fn point_to_segment_endpoint() {
269 let d = point_to_segment_dist_sq([12.0, 0.0], [0.0, 0.0], [10.0, 0.0]);
270 assert!((d - 4.0).abs() < 1e-10); // 2 units past endpoint
271 }
272
273 #[test]
274 fn segment_to_segment_parallel() {

Callers

nothing calls this directly

Calls 1

point_to_segment_dist_sqFunction · 0.85

Tested by

no test coverage detected