Method EuclideanNorm
EuclideanNorm(GridPoint2)
Returns the Euclidean norm of this point, treating it as lying in a (normalized) hex grid.
public static float EuclideanNorm(GridPoint2 point)
Parameters
pointGridPoint2
Returns
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).
EuclideanNorm(Vector2)
Returns the Euclidean norm of this point, treating it as lying in a (normalized) hex grid.
public static float EuclideanNorm(Vector2 point)
Parameters
pointVector2
Returns
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).