Method StretchInRect
StretchInRect(IMap<Vector3, Vector3>, IExplicitShape<GridPoint2>, Func<GridPoint2, Vector3>, Bounds)
Creates a map that Scale its height and weight in a Proportional way.
public static IMap<Vector3, Vector3> StretchInRect(this IMap<Vector3, Vector3> map, IExplicitShape<GridPoint2> shape, Func<GridPoint2, Vector3> cellSize, Bounds bounds)Parameters
- mapIMap<Vector3, Vector3>
- Base map where you apply this call. 
- shapeIExplicitShape<GridPoint2>
- Shape used in the map. 
- cellSizeFunc<GridPoint2, Vector3>
- This function is used to calculate the size of a cell. 
- boundsBounds
- Bounds of the screen where the grid is.