MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / closest_points

Function closest_points

src/geometry/closest_points.rs:18–25  ·  view source on GitHub ↗

returns the two closest points or None if there are zero or one point

(points: &[Point])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

closest_points_auxFunction · 0.85
partial_cmpMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected