Table of Contents

Method Translate

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Translate(IImplicitShape<int>, int)

Creates a 1D Translation Shape with a given offset.

public static IImplicitShape<int> Translate(this IImplicitShape<int> shape, int offset)

Parameters

shape IImplicitShape<int>

Base shape used to make the translation.

offset int

Offset to perform in the shape.

Returns

IImplicitShape<int>

Translate(IImplicitShape<GridPoint2>, GridPoint2)

Creates a 2D Translate Shape.

public static IImplicitShape<GridPoint2> Translate(this IImplicitShape<GridPoint2> shape, GridPoint2 offset)

Parameters

shape IImplicitShape<GridPoint2>

Base Shape to translate.

offset GridPoint2

Offset of the translation.

Returns

IImplicitShape<GridPoint2>

Translate(IImplicitShape<GridPoint3>, GridPoint3)

Creates a 3D Translate Shape.

public static IImplicitShape<GridPoint3> Translate(this IImplicitShape<GridPoint3> shape, GridPoint3 offset)

Parameters

shape IImplicitShape<GridPoint3>

Base shape to translate.

offset GridPoint3

Offset of the movement of the shape.

Returns

IImplicitShape<GridPoint3>