Exemple #1
0
        public override bool Equals(object obj)
        {
            if (!(obj is SizeD))
            {
                return(false);
            }
            SizeD comp = (SizeD)obj;

            return((comp.width == this.width) && (comp.height == this.height));
        }
Exemple #2
0
 public static SizeD Sub(SizeD s1, SizeD s2)
 {
     return(new SizeD(s1.Width - s2.Width, s1.Height - s2.Height));
 }
Exemple #3
0
 public static SizeD operator -(SizeD s1, SizeD s2)
 {
     return(SizeD.Sub(s1, s2));
 }
Exemple #4
0
 public static SizeD Add(SizeD s1, SizeD s2)
 {
     return(new SizeD(s1.Width + s2.Width, s1.Height + s2.Height));
 }
Exemple #5
0
 public static SizeD operator +(SizeD s1, SizeD s2)
 {
     return(SizeD.Add(s1, s2));
 }