GridMath

GridMath

Stub implementation of GridMath for compilation. TODO: Replace with full implementation when dependencies are resolved.

Project: GridPlacement v6.0
Layer: Godot
Source: Godot/Geometry/GridMath.cs
Namespace: GridBuilding.Godot.Core.Grid
Kind: class

Parsing Method: AST-based (Roslyn) - NOT regex

⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.

Methods

WorldToGrid

Converts a world-space position to grid coordinates given a tile size.

Returns: Vector2I

Parameters:

  • Vector2 worldPosition
  • Vector2 tileSize

GridToWorld

Converts grid coordinates to a world-space position (typically tile center).

Returns: Vector2

Parameters:

  • Vector2I gridPosition
  • Vector2 tileSize