Skip to content

Instantly share code, notes, and snippets.

@JonRurka
Last active August 29, 2015 14:20
Show Gist options
  • Save JonRurka/580bd6eca24f02f6b3c6 to your computer and use it in GitHub Desktop.
Save JonRurka/580bd6eca24f02f6b3c6 to your computer and use it in GitHub Desktop.
public override bool Equals(object obj) {
if (obj is Vector3Int)
{
return Equals((Vector3Int)obj);
}
return false;
}
public bool Equals(Vector3Int other)
{
return (x == other.x && y == other.y && z == other.z);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment