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