cc-haxe/src/util/MathI.hx

20 lines
246 B
Haxe
Raw Normal View History

2021-12-20 00:55:30 +00:00
package util;
class MathI {
2022-02-21 14:35:37 +00:00
public static function max(a:Int, b:Int):Int {
if (a > b) {
return a;
} else {
return b;
}
}
2021-12-20 00:55:30 +00:00
2022-02-21 14:35:37 +00:00
public static function min(a:Int, b:Int):Int {
if (a < b) {
return a;
} else {
return b;
}
}
2021-12-20 00:55:30 +00:00
}