Beispiel #1
0
        public bool Equal(Tetrahedron src)
        {
            var check = false;
            var hitCount = 0;

            for ( int i = 0; i < this.Vertices.Count(); i++ )
            {
                for ( int j = 0; j < src.Vertices.Count(); j++ )
                {
                    if ( this.Vertices[i].Equals(src.Vertices[j]) )
                    {
                        hitCount++;
                    }
                }
            }

            if ( hitCount == 4 ) check = true;
            return check;
        }
Beispiel #2
0
        public bool Equal(Tetrahedron src)
        {
            var check    = false;
            var hitCount = 0;

            for (int i = 0; i < this.Vertices.Count(); i++)
            {
                for (int j = 0; j < src.Vertices.Count(); j++)
                {
                    if (this.Vertices[i].Equals(src.Vertices[j]))
                    {
                        hitCount++;
                    }
                }
            }

            if (hitCount == 4)
            {
                check = true;
            }
            return(check);
        }