Example #1
0
        public bool Equals(StackedBoundingBox other)
        {
            if (bounds_list.Count != other.bounds_list.Count || min_z != (double)other.min_z || max_z != (double)other.max_z)
            {
                return(false);
            }

            for (var index = 0; index < bounds_list.Count; ++index)
            {
                if (bounds_list[index] != other.bounds_list[index])
                {
                    return(false);
                }
            }
            return(true);
        }
Example #2
0
        public override bool Equals(object obj)
        {
            StackedBoundingBox stackedBoundingBox = this;
            var other = obj as StackedBoundingBox;

            if ((object)stackedBoundingBox == null && (object)other == null)
            {
                return(true);
            }

            if ((object)stackedBoundingBox == null || (object)other == null)
            {
                return(false);
            }

            return(stackedBoundingBox.Equals(other));
        }
Example #3
0
 public StackedBoundingBox(StackedBoundingBox other)
 {
     bounds_list = new List <BoundingBox>(other.bounds_list);
     min_z       = other.min_z;
     max_z       = other.max_z;
 }