Table of Contents

Method RoundToGridPoint

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

RoundToGridPoint(Vector2)

Rounds a vector to the closest grid point if the points represent a hex grid.

public static GridPoint2 RoundToGridPoint(Vector2 vector)

Parameters

vector Vector2

Returns

GridPoint2