/// <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()); }
// 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)); }