Method Translate
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
intThe amount to translate the copy by
Returns
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
GridPoint2The amount to translate the copy by
Returns
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
GridPoint3The amount to translate the copy by