Point.Manhattan Distance Method
Returns the "Manhattan distance" between two points.
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
The sum of the absolute differences of the coordinates of point1 and point2.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static double ManhattanDistance(
Point point1,
Point point2
)
Parameters
- point1 Point
- A Point structure for the first point.
- point2 Point
- A Point structure for the second point.
Return Value
DoubleThe sum of the absolute differences of the coordinates of point1 and point2.