Table of Contents

Method Hexagon

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Hexagon(Vector2, float)

Creates a 2D Hexagon Shape using a Circle Shape with a Hex Norm.

public static IImplicitShape<GridPoint2> Hexagon(Vector2 center, float radius)

Parameters

center Vector2

Center point of the Hexagon.

radius float

Radius of the shape.

Returns

IImplicitShape<GridPoint2>

Hexagon(float)

Creates a 2D Hexagon Shape using a Circle Shape with a Hex Norm.

public static IImplicitShape<GridPoint2> Hexagon(float radius)

Parameters

radius float

Radius of the shape.

Returns

IImplicitShape<GridPoint2>