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; } } }