示例#1
0
        public override int GetHashCode()
        {
            var hash1 = SubMeshIndex.GetHashCode();
            var hash2 = SurfaceParameter.GetHashCode();
            var hash3 = MeshType.GetHashCode();
            var hash  = hash1;

            hash *= 389 + hash2;
            hash *= 397 + hash3;

            return(hash + (hash1 ^ hash2 ^ hash3) + (hash1 + hash2 + hash3) + (hash1 * hash2 * hash3));
        }
        public override int GetHashCode()
        {
            var hashCode = -190551774;

            hashCode = hashCode * -1521134295;
            hashCode = hashCode * -1521134295 + meshQuery.GetHashCode();
            hashCode = hashCode * -1521134295 + (int)surfaceParameter;
            hashCode = hashCode * -1521134295 + (int)subMeshQueryIndex;
            hashCode = hashCode * -1521134295 + (int)meshQueryIndex;
            hashCode = hashCode * -1521134295 + (int)geometryHashValue;
            hashCode = hashCode * -1521134295 + (int)surfaceHashValue;
            hashCode = hashCode * -1521134295 + (int)vertexCount;
            hashCode = hashCode * -1521134295 + (int)indexCount;
            return(hashCode);
        }