Method HexNorm
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
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
Remarks
Equivalent to the ManhattanNorm(GridPoint2).