Table of Contents

Method PointyHexThinRectangle

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

PointyHexThinRectangle(GridPoint2)

Creates a thin rectangle shape suitable for a pointy hex grid.

[Version(2, 3, 8)]
public static IImplicitShape<GridPoint2> PointyHexThinRectangle(GridPoint2 dimensions)

Parameters

dimensions GridPoint2

The width and height of the rectangle.

Returns

IImplicitShape<GridPoint2>

Remarks

Each second row has one less cell than the given width, making the rectangle "thin", but more symmetrical than an ordinary rectangle.