UniVRM/Assets/VRM10/vrmlib/Runtime/MathFWrap.cs
ousttrue d53942a7bd merge vrm10
* MeshUtility を UniGLTF 下に移動
* Assets/VRM10 を追加
* JsonSchemaからのコード生成 UniGLTF/Editor/Generator を追加
2021-01-07 13:37:24 +09:00

19 lines
422 B
C#

using System;
namespace VrmLib
{
public static class MathFWrap
{
public static readonly float PI = (float)System.Math.PI;
public static float Clamp(float src, float min, float max)
{
return Math.Max(Math.Min(src, min), max);
}
public static int Clamp(int src, int min, int max)
{
return Math.Max(Math.Min(src, min), max);
}
}
}