cc-haxe/src/lib/MathI.hx

20 lines
245 B
Haxe
Raw Normal View History

2022-12-19 20:06:23 +00:00
package lib;
2021-12-20 00:55:30 +00:00
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
}