Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (!(obj is GenericPosition))
            {
                return(false);
            }

            GenericPosition pos = (GenericPosition)obj;

            return(X.Equals(pos.X) && Y.Equals(pos.Y) && Z.Equals(pos.Z));
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (!(obj is GenericPosition))
            {
                return(false);
            }
            GenericPosition genericPosition = (GenericPosition)obj;

            if (!this.X.Equals(genericPosition.X) || !this.Y.Equals(genericPosition.Y))
            {
                return(false);
            }
            return(this.Z.Equals(genericPosition.Z));
        }