You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
460 B

1 month ago
using Sog;
namespace CoreGame.Render
{
public static class MathSrv
{
public static int Clamp(int value, int min, int max)
{
if (value < min)
value = min;
else if (value > max)
value = max;
return value;
}
public static int Min(int originX, int tileCountX)
{
return originX < tileCountX ? originX : tileCountX;
}
}
}