Table of Contents

Method HexNorm

Namespace
Gamelogic.Grids2
Assembly
Assembly-CSharp.dll

HexNorm(GridPoint2)

Returns the hex 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 HexNorm(GridPoint2 point)

Parameters

point GridPoint2

Returns

int

Remarks

Equivalent to the ManhattanNorm(GridPoint2).

HexNorm(Vector2)

Returns the hex 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 HexNorm(Vector2 point)

Parameters

point Vector2

Returns

float

Remarks

Equivalent to the ManhattanNorm(GridPoint2).