Vector3D.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( ) : int
return int
    public override int GetHashCode()
    {
        return this.x.GetHashCode () ^ this.y.GetHashCode () << 2 ^ this.z.GetHashCode () >> 2;
    }

Usage Example

Beispiel #1
0
        public int GetHashCode(Circle3D c)
        {
            Vector3D t = c.Normal;

            t = new Vector3D(Math.Abs(t.X), Math.Abs(t.Y), Math.Abs(t.Z), Math.Abs(t.W));
            return(c.Center.GetHashCode() ^ t.GetHashCode());
        }
All Usage Examples Of Vector3D::GetHashCode