Table of Contents

Method UpTriPseudoNorm

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

UpTriPseudoNorm(GridPoint2)

Returns the up-triangle pseudonorm of the given point.

public static int UpTriPseudoNorm(GridPoint2 point)

Parameters

point GridPoint2

Returns

int

Remarks

All the points that satisfy UpTriPseudoNorm(p) < r form an up-triangle in a pointy hex grid.

UpTriPseudoNorm(Vector2)

Returns the up-triangle pseudonorm of the given point.

public static float UpTriPseudoNorm(Vector2 point)

Parameters

point Vector2

Returns

float

Remarks

All the points that satisfy UpTriPseudoNorm(p) < r form an up triangle in a pointy hex grid.