12 lines
227 B
C#
12 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);
|
|||
|
}
|
|||
|
}
|