예제 #1
0
 public Size2i Shrink(Size2i s)
 {
     return(new Size2i(Math.Max(0, Width - s.Width), Math.Max(0, Height - s.Height)));
 }
예제 #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)));
 }
예제 #3
0
 public Size2i Grow(Size2i s)
 {
     return(new Size2i(Width + s.Width, Height + s.Height));
 }