Table of Contents

Method ManhattanNorm

Namespace
Gamelogic.Grids2
Assembly
Assembly-CSharp.dll

ManhattanNorm(GridPoint2)

Returns the Hex-Manhattan norm of a point, defined by how many edges you have to cross in a hex grid moving from the origin to the point.

public static int ManhattanNorm(GridPoint2 point)

Parameters

point GridPoint2

Returns

int

Remarks

Equivalent to the HexNorm(GridPoint2).

ManhattanNorm(Vector2)

Returns the Hex-Manhattan norm of a point, defined by how many edges you have to cross in a hex grid moving from the origin to the point.

public static float ManhattanNorm(Vector2 point)

Parameters

point Vector2

Returns

float

Remarks

Equivalent to the HexNorm(Vector2).