Vector3D.GetHashCode C# (CSharp) Méthode

GetHashCode() public méthode

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

Usage Example

Exemple #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