Skip to content

Instantly share code, notes, and snippets.

@rje
Last active May 4, 2017 03:35
Show Gist options
  • Save rje/308f9b2132db90df5814af9a1da1c753 to your computer and use it in GitHub Desktop.
Save rje/308f9b2132db90df5814af9a1da1c753 to your computer and use it in GitHub Desktop.
public override bool Equals(object other)
{
bool result;
if (!(other is Vector3))
{
result = false;
}
else
{
Vector3 vector = (Vector3)other;
result = (this.x.Equals(vector.x) && this.y.Equals(vector.y) && this.z.Equals(vector.z));
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment