IGridMap2D
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.
Declaration
Summary
Represents a 2D grid map capable of converting between world and grid coordinates.
Metadata
Namespace: GridPlacement.Core.Interfaces.Grid
Source File: cs/Core/Interfaces/Grid/IGridMap2D.cs
Assembly: GridPlacement.Core
Type: interface
Methods
WorldToGrid
Converts a world-space position to a grid-space position.
Parameters
| Name | Description |
|---|---|
worldPosition | The world-space position. |
Returns
The corresponding grid-space position.
GridToWorld
Converts a grid-space position to a world-space position.
Parameters
| Name | Description |
|---|---|
gridPosition | The grid-space position. |
Returns
The corresponding world-space position.
IsValidGridPosition
Returns whether a grid-space position is within the valid bounds of the map.
Parameters
| Name | Description |
|---|---|
gridPosition | The grid-space position. |
Returns
true if valid; otherwise false.