Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/SRF/SRFFloatExtensions.cs
2026-02-21 16:45:37 +08:00

28 lines
417 B
C#

using UnityEngine;
namespace SRF
{
public static class SRFFloatExtensions
{
public static float Sqr(this float f)
{
return f * f;
}
public static float SqrRt(this float f)
{
return Mathf.Sqrt(f);
}
public static bool ApproxZero(this float f)
{
return Mathf.Approximately(0f, f);
}
public static bool Approx(this float f, float f2)
{
return Mathf.Approximately(f, f2);
}
}
}