feat: Math.Clamp
This commit is contained in:
parent
b3d404bb6b
commit
4bf618251f
|
@ -16,6 +16,7 @@ public static class Math
|
|||
public static float Asin(float x) => MathF.Asin(x);
|
||||
public static float Atan2(float y, float x) => MathF.Atan2(y, x);
|
||||
public static float Atanh(float x) => MathF.Atanh(x);
|
||||
public static float Clamp(float x, float min, float max) => (x < min) ? min : (x > max) ? max : x;
|
||||
public static float Ceiling(float x) => MathF.Ceiling(x);
|
||||
public static float CopySign(float x, float y) => MathF.CopySign(x, y);
|
||||
public static float Floor(float x) => MathF.Floor(x);
|
||||
|
|
Loading…
Reference in New Issue