Click or drag to resize
Vector2IManhattanDistance Method
Sum of the absolute values of the differences of the components of both vectors.

Namespace: Slash.Math.Algebra.Vectors
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static int ManhattanDistance(
	Vector2I a,
	Vector2I b
)

Parameters

a
Type: Slash.Math.Algebra.VectorsVector2I
First vector.
b
Type: Slash.Math.Algebra.VectorsVector2I
Second vector.

Return Value

Type: Int32
|a.X - b.X| + |a.Y - b.Y|
See Also