Table of Contents

Method Parallelogram

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Parallelogram(GridPoint2)

Creates a new axis-aligned parallelogram shape.

public static IExplicitShape<GridPoint2> Parallelogram(GridPoint2 dimensions)

Parameters

dimensions GridPoint2

The dimensions of the parallelogram to create

Returns

IExplicitShape<GridPoint2>

Remarks

For rect grids, this will be a rectangle. For hex grids, this will be a parallelogram with one corner 60 degrees. For polar grids, this will be a ring.