Snowflake/RPG.GameCore/Util/MathUtil.cs

11 lines
227 B
C#

namespace RPG.GameCore.Util;
public static class MathUtil
{
private const float LogicCoordMulValue = 1000f;
public static int GetLogicCoordValue(float v)
{
return (int)(v * LogicCoordMulValue);
}
}