Engine-Pong/Game/Physics2D/Primitives/Math.cs

10 lines
320 B
C#
Raw Normal View History

2024-01-22 12:28:43 +03:00
namespace Syntriax.Engine.Physics2D.Primitives;
public static class Math
{
public const float RadianToDegree = 57.29577866666166f;
public const float DegreeToRadian = 0.01745329277777778f;
2024-01-22 19:23:16 +03:00
public static float Clamp(float value, float min, float max) => (value < min) ? min : (value > max) ? max : value;
2024-01-22 12:28:43 +03:00
}