Esempio n. 1
0
 public Size2i Shrink(Size2i s)
 {
     return(new Size2i(Math.Max(0, Width - s.Width), Math.Max(0, Height - s.Height)));
 }
Esempio n. 2
0
 public static Size2i Max(Size2i s1, Size2i s2)
 {
     return(new Size2i(Math.Max(s1.Width, s2.Width), Math.Max(s1.Height, s2.Height)));
 }
Esempio n. 3
0
 public Size2i Grow(Size2i s)
 {
     return(new Size2i(Width + s.Width, Height + s.Height));
 }