Better hashcodes for Vectors and Vertices
This commit is contained in:
committed by
Justin Clark-Casey
parent
606834e9cf
commit
7e4bdad41a
@@ -355,7 +355,9 @@ namespace OpenMetaverse
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return X.GetHashCode() ^ Y.GetHashCode();
|
||||
int hash = X.GetHashCode();
|
||||
hash = hash * 31 + Y.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user