mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-25 15:08:00 +01:00
16 lines
332 B
C#
16 lines
332 B
C#
|
// Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||
|
// GameDataEditor.FloatExtensions
|
||
|
using System;
|
||
|
|
||
|
namespace GameDataEditor
|
||
|
{
|
||
|
public static class FloatExtensions
|
||
|
{
|
||
|
public const float TOLERANCE = 0.1f;
|
||
|
|
||
|
public static bool NearlyEqual(this float a, float b)
|
||
|
{
|
||
|
return Math.Abs(a - b) < 0.1f;
|
||
|
}
|
||
|
}
|
||
|
}
|