Table of Contents

Method PreTranslate

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

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

Creates a map that translate before applying the given map.

public static IMap<Vector3, TPoint> PreTranslate<TPoint>(this IMap<Vector3, TPoint> map, Vector3 offset)

Parameters

map IMap<Vector3, TPoint>

Base map used in the operations.

offset Vector3

Offset to translate the map.

Returns

IMap<Vector3, TPoint>

Type Parameters

TPoint

Type of the point