cc-haxe/src/util/MathI.hx

20 lines
383 B
Haxe
Raw Normal View History

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