Table of Contents

Operator explicit operator

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

explicit operator GridPoint2(Vector2)

Converts a Vector2 to a GridPoint2 by casting components to integers.

public static explicit operator GridPoint2(Vector2 vector)

Parameters

vector Vector2

Returns

GridPoint2