Table of Contents

Method Translate

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Translate(IExplicitShape<int>, int)

Returns a translated copy of the given shape.

[Version(2, 3, 0)]
public static IExplicitShape<int> Translate(this IExplicitShape<int> shape, int offset)

Parameters

shape IExplicitShape<int>

The shape to copy and translate.

offset int

The amount to translate the copy by

Returns

IExplicitShape<int>

Translate(IExplicitShape<GridPoint2>, GridPoint2)

Returns a translated copy of the given shape.

[Version(2, 3, 0)]
public static IExplicitShape<GridPoint2> Translate(this IExplicitShape<GridPoint2> shape, GridPoint2 offset)

Parameters

shape IExplicitShape<GridPoint2>

The shape to copy and translate.

offset GridPoint2

The amount to translate the copy by

Returns

IExplicitShape<GridPoint2>

Translate(IExplicitShape<GridPoint3>, GridPoint3)

Returns a translated copy of the given shape.

[Version(2, 3, 0)]
public static IExplicitShape<GridPoint3> Translate(this IExplicitShape<GridPoint3> shape, GridPoint3 offset)

Parameters

shape IExplicitShape<GridPoint3>

The shape to copy and translate.

offset GridPoint3

The amount to translate the copy by

Returns

IExplicitShape<GridPoint3>