Table of Contents

Method StretchInRectToCover

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

StretchInRectToCover(IMap<Vector3, Vector3>, IExplicitShape<GridPoint2>, Func<GridPoint2, Vector3>, Bounds)

It stretch the grid to cover the rect where it is.

public static IMap<Vector3, Vector3> StretchInRectToCover(this IMap<Vector3, Vector3> map, IExplicitShape<GridPoint2> shape, Func<GridPoint2, Vector3> cellSize, Bounds bounds)

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 screen where the grid is.

Returns

IMap<Vector3, Vector3>