Table of Contents

Method AlignGridHorizontal

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

AlignGridHorizontal(IMap<Vector3, Vector3>, IExplicitShape<GridPoint2>, Func<GridPoint2, Vector3>, Bounds, HorizontalAlignment)

Returns a Map that translate in such a way that it is aligned horizontally according to the given alignment.

[Obsolete]
public static IMap<Vector3, Vector3> AlignGridHorizontal(this IMap<Vector3, Vector3> map, IExplicitShape<GridPoint2> shape, Func<GridPoint2, Vector3> cellSize, Bounds bounds, HorizontalAlignment alignment)

Parameters

map IMap<Vector3, Vector3>

Base map where you apply this call.

shape IExplicitShape<GridPoint2>

Shape used in the map.

cellSize Func<GridPoint2, Vector3>

This function is used to calculate the size of a cell.

bounds Bounds

Bounds of the Map.

alignment HorizontalAlignment

Type of alignment to apply.

Returns

IMap<Vector3, Vector3>