A simple class for those who need an integer vector struct for c# gamedev (Unity).
C#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
IntVector2.cs
IntVector2Util.cs
README.md

README.md

IntVector2

A simple class for those who need an integer vector (x,y) struct for c# gamedev (Unity). Its so simple...why would you use mine? Because mine:

  • Implements equality operators.
  • Implements ToString().
  • Has helper methods such as Left(), Right(), Up(), Down().
  • Utility classes for translating/rotating arrays of vectors.
  • Serializable.
  • Useful statics for IntVector2.zero, IntVector2.one, IntVector2.neg1.

This is part of the Enemy Hideout Code Archive