inline T DistanceL1(T x2, T y2) const; inline T DistanceL1(const Point<T> & pt) const;
DistanceL1 calculates the L1 distance Manhattan style (The sum of the absolute values of the x and y distances) using the equation:
abs(x1-x2) + abs(y1-y2)
This allows the user to calculate distances while only following the lines of a rectangular grid.
A value containing the calculated L1 distance.