mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-06 05:07:47 -05:00
* MeshUtility を UniGLTF 下に移動 * Assets/VRM10 を追加 * JsonSchemaからのコード生成 UniGLTF/Editor/Generator を追加
19 lines
422 B
C#
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);
|
|
}
|
|
}
|
|
}
|