Beispiel #1
0
        public override bool Equals(object obj)
        {
            var otherBBox = obj as IBBox;

            if (otherBBox == null)
            {
                return(false);
            }
            return(BBoxHelper.Equals(this, otherBBox));
        }
Beispiel #2
0
        public static bool operator ==(BBox a, IBBox b)
        {
            if (ReferenceEquals(a, b))
            {
                return(true);
            }
            if (ReferenceEquals(a, null) || ReferenceEquals(b, null))
            {
                return(false);
            }

            return(BBoxHelper.Equals(a, b));
        }