Table of Contents

Interface IGridMap<TDiscreteInputType, TContinuousInputType, TOutput>

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

A grid map is used to convert from grid space to world space.

public interface IGridMap<TDiscreteInputType, TContinuousInputType, TOutput>

Type Parameters

TDiscreteInputType

The discrete input type. Built-in examples are int, GridPoint2, and GridPoint3.

TContinuousInputType

The corresponding continuous type. Built-in examples are float, Vector2, and Vector3/>

TOutput

The output type, typically Vector3.

Methods

GridToWorld(TDiscreteInputType)

Converts a discrete grid point to world point.

GridToWorld(TContinuousInputType)

Converts a discrete grid point to world point.

WorldToGrid(TOutput)

Converts a world point to a continuous grid point.

WorldToGridToDiscrete(TOutput)

Converts a world point to a discrete world point.

See Also

IGridMap<TDiscreteInputType, TContinuousInputType, TOutput>