Skip to main content

orthogonal_distance

Function orthogonal_distance 

Source
pub fn orthogonal_distance(a: &[i64; 2], b: &[i64; 2]) -> u64
Expand description

Returns maximum distance between two points computed along each axis individually, i.e. $ \mathrm{max}\left(\left|x_1 - x_0\right|, \left|y_1 - y_0\right|\right) $.