Nez.Portable/Math/Mathf.cs
/// <summary>
/// checks to see if two values are approximately the same using an acceptable tolerance for the check
/// </summary>
/// <param name="value1">Value1.</param>
/// <param name="value2">Value2.</param>
/// <param name="tolerance">Tolerance.</param>
checks to see if two values are approximately the same using an acceptable tolerance for the check
checks to see if two values are approximately the same using an acceptable tolerance for the check
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static bool approximately(float value1, float value2, float tolerance = epsilon)
        {
            return Math.Abs(value1 - value2) <= tolerance;
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static bool approximately ( float value1 , float value2 , float tolerance = epsilon ) { return Math . Abs ( value1 - value2 ) <= tolerance ; }
checks to see if two values are approximately the same using an acceptable tolerance for the check
checks to see if two values are approximately the same using an acceptable tolerance for the check
value1
float
None
value2
float
None
tolerance
float
None