Skip to content

Commit

Permalink
feat: add a static Vector2Int.Zero property.
Browse files Browse the repository at this point in the history
  • Loading branch information
purifetchi committed Jan 3, 2023
1 parent ad05406 commit eca4bbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions VTTiny/Base/Vector2Int.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public struct Vector2Int
{
public int X, Y;

public static Vector2Int Zero => new Vector2Int(0, 0);

public static implicit operator Vector2Int(Vector2 vec)
{
return new Vector2Int((int)vec.X, (int)vec.Y);
Expand Down

0 comments on commit eca4bbc

Please sign in to comment.