Table of Contents

Method FlatHexFatRectangle

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

FlatHexFatRectangle(GridPoint2)

Creates a fat rectangle shape suitable for a flat hex grid.

[Version(2, 2, 0)]
public static IImplicitShape<GridPoint2> FlatHexFatRectangle(GridPoint2 dimensions)

Parameters

dimensions GridPoint2

The width and height of the rectangle.

Returns

IImplicitShape<GridPoint2>

Remarks

Each second column has one more cell than the given height, making the rectangle "fat", but more symmetrical than an ordinary rectangle.