Table of Contents

Method PreScale

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

PreScale<TPoint>(IMap<float, TPoint>, float)

public static IMap<float, TPoint> PreScale<TPoint>(this IMap<float, TPoint> map, float scale)

Parameters

map IMap<float, TPoint>
scale float

Returns

IMap<float, TPoint>

Type Parameters

TPoint

PreScale<TPoint>(IMap<Vector2, TPoint>, Vector2)

public static IMap<Vector2, TPoint> PreScale<TPoint>(this IMap<Vector2, TPoint> map, Vector2 scale)

Parameters

map IMap<Vector2, TPoint>
scale Vector2

Returns

IMap<Vector2, TPoint>

Type Parameters

TPoint

PreScale<TPoint>(IMap<Vector3, TPoint>, Vector3)

Creates a map that scales a vector before applying the given map.

public static IMap<Vector3, TPoint> PreScale<TPoint>(this IMap<Vector3, TPoint> map, Vector3 scale)

Parameters

map IMap<Vector3, TPoint>

Base map used in the operations.

scale Vector3

Scale factor used in the map.

Returns

IMap<Vector3, TPoint>

Type Parameters

TPoint

Type of the point