Point.ManhattanDistance Method

Returns the "Manhattan distance" between two points.

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
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

Double
The sum of the absolute differences of the coordinates of point1 and point2.

See Also