Snowflake/RPG.GameCore/Util/MathUtil.cs

12 lines
227 B
C#
Raw Normal View History

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