Table of Contents

Method Layer

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Layer(IEnumerable<IImplicitShape<GridPoint2>>)

Creates a new 3D shape by staking a list of 2D shapes.

[Version(2, 2, 0)]
public static IImplicitShape<GridPoint3> Layer(IEnumerable<IImplicitShape<GridPoint2>> shapes)

Parameters

shapes IEnumerable<IImplicitShape<GridPoint2>>

The shapes to stack.

Returns

IImplicitShape<GridPoint3>

Layer(IImplicitShape<GridPoint2>, int)

Creates a shape that has the given number of 2D shapes stacked in layers.

[Version(2, 2, 0)]
public static IImplicitShape<GridPoint3> Layer(this IImplicitShape<GridPoint2> shape, int layerCount)

Parameters

shape IImplicitShape<GridPoint2>

The shape to stack.

layerCount int

The number of layers in the resulting shape

Returns

IImplicitShape<GridPoint3>