Function rdcl_aoc_helpers::math::taxi_cab_2d
source · pub fn taxi_cab_2d<T>((xa, ya): (T, T), (xb, yb): (T, T)) -> Twhere
T: Add<T, Output = T> + Sub<T, Output = T> + Ord + Copy,
Expand description
The taxi cab distance between two 2D points.