Skip to main content

nearer

Function nearer 

Source
pub fn nearer<S: Scalar>(a: S, b: S) -> Ordering
Expand description

Orders two distances for picking the nearest. Which of two overlapping enclosures is “nearer” is no geometric claim, only which of two things under the pointer to prefer, so their midpoints decide.