예제 #1
0
        public static bool operator !=(FloatPosition position1, FloatPosition position2)
        {
            if (ReferenceEquals(position1, position2))
            {
                return(false);
            }

            if (ReferenceEquals(position1, null) || ReferenceEquals(position2, null))
            {
                return(true);
            }

            return(!Misc.FloatEqual(position1.X, position2.X) || !Misc.FloatEqual(position1.Y, position2.Y));
        }
예제 #2
0
        public static bool operator !=(FloatSize size1, FloatSize size2)
        {
            if (ReferenceEquals(size1, size2))
            {
                return(false);
            }

            if (ReferenceEquals(size1, null) || ReferenceEquals(size2, null))
            {
                return(true);
            }

            return(!Misc.FloatEqual(size1.Width, size2.Width) || !Misc.FloatEqual(size1.Height, size2.Height));
        }