示例#1
0
 /// <summary>
 /// Gets the hashcode of the vector.
 /// </summary>
 /// <returns>Returns the hashcode of the vector.</returns>
 #region public override int GetHashCode()
 public override int GetHashCode()
 {
     return(x.GetHashCode() ^ y.GetHashCode() ^ z.GetHashCode());
 }
示例#2
0
 // used to allow FPVector4s to be used as keys in hash tables
 public override int GetHashCode()
 {
     return(x.GetHashCode() ^ (y.GetHashCode() << 2) ^ (z.GetHashCode() >> 2) ^ (w.GetHashCode() >> 1));
 }