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

Function closest_points_aux

src/geometry/closest_points.rs:29–113  ·  view source on GitHub ↗

We maintain two vectors with the same points, one sort by x coordinates and one sorted by y coordinates.

(
    points_x: &[Point],
    points_y: Vec<Point>,
    mut start: usize,
    mut end: usize,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

closest_pointsFunction · 0.85

Calls 4

euclidean_distanceMethod · 0.80
pushMethod · 0.80
iterMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected