Point::DistanceLn

Point::DistanceLn
inline T DistanceLn(T x2, T y2) const;
inline T DistanceLn(const Point<T> & pt) const;
Description

DistanceLn calculates the L Infinite Distance using the equation:

   max(abs(x-x2), abs(y-y2))
Parameters
Parameters 
Description 
T x2 
The x coordinate of a point whose infinite distance to the current Point will be calculated. 
T y2 
The y coordinate of a point whose infinite distance to the current Point will be calculated. 
const Point<T> & pt 
A point parameter whose x and y coordinates will act as x2 and y2 respectively in the above equation. 
Return Value

A value containing the calculated Infinite Distance.