예제 #1
0
 public static double Aspect(this Extent <int> extent) => extent.Width() * 1.0 / extent.Height();
예제 #2
0
 public static double Area(this Extent <int> extent) => Math.Abs(extent.Width() * extent.Height());
예제 #3
0
 public static int Height(this Extent <int> extent) => extent.E.Y - extent.S.Y + 1;
예제 #4
0
 public static int Width(this Extent <int> extent) => extent.E.X - extent.S.X + 1;
예제 #5
0
 public static double Aspect(this Extent <double> extent) => extent.Width() / extent.Height();
예제 #6
0
 public static double Height(this Extent <double> extent) => extent.E.Y - extent.S.Y;
예제 #7
0
 public static double Width(this Extent <double> extent) => extent.E.X - extent.S.X;