Elin Decompiled Documentation EA 23.286 Nightly
Loading...
Searching...
No Matches
MathEx.cs
Go to the documentation of this file.
1public static class MathEx
2{
3 public static int Min(long a, int b = int.MaxValue)
4 {
5 if (a > b)
6 {
7 return b;
8 }
9 return (int)a;
10 }
11
12 public static long Max(long a, long b)
13 {
14 if (a >= b)
15 {
16 return a;
17 }
18 return b;
19 }
20}
Definition: MathEx.cs:2
static int Min(long a, int b=int.MaxValue)
Definition: MathEx.cs:3
static long Max(long a, long b)
Definition: MathEx.cs:12