Click or drag to resize

PointyHexPointEuclideanNorm Method

Returns the Euclidean norm of this point, treating it as lying in a (normalized) hex grid.

Namespace:  Gamelogic.Grids2
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static float EuclideanNorm(
	GridPoint2 point
)

Parameters

point
Type: Gamelogic.Grids2GridPoint2

Return Value

Type: Single
Remarks
Note that this does not give the same result as EuclideanNorm(GridPoint2). For example, the point (1, 1) has RectPoint.EuclideanNorm equal to sqrt(2), but the PointyHexPoint.EuclideanNorm is sqrt(3).
See Also