Beispiel #1
0
        public bool Equals(Vertex v)
        {
            // If parameter is null return false:
            if (v == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return(IsConcave == v.IsConcave && VertPosition.Equals(v.VertPosition));
        }
Beispiel #2
0
        //copying this method from the MSDN implementation of "TwoDPoint"
        public override bool Equals(object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to RectEdge return false.
            if (!(obj is Vertex v))
            {
                return(false);
            }

            // Return true if the fields match:
            return(IsConcave == v.IsConcave && VertPosition.Equals(v.VertPosition));
        }