Table of Contents

Method Create

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Create(IEnumerable<int>)

Creates a new shape that contains all the points in the given list.

public static IExplicitShape<int> Create(IEnumerable<int> shape)

Parameters

shape IEnumerable<int>

The points that should make up the resulting shape.

Returns

IExplicitShape<int>

Create(IEnumerable<GridPoint2>)

Creates a new shape that contains all the points in the given list.

public static IExplicitShape<GridPoint2> Create(IEnumerable<GridPoint2> shape)

Parameters

shape IEnumerable<GridPoint2>

The points that should make up the resulting shape.

Returns

IExplicitShape<GridPoint2>

Create(IEnumerable<GridPoint3>)

Creates a new shape that contains all the points in the given list.

public static IExplicitShape<GridPoint3> Create(IEnumerable<GridPoint3> shape)

Parameters

shape IEnumerable<GridPoint3>

The points that should make up the resulting shape.

Returns

IExplicitShape<GridPoint3>