diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2019-04-01 18:13:38 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2019-04-25 13:20:29 -0400 |
commit | c577ec6ae46f8c6d848cae46c0e447e6607b3f33 (patch) | |
tree | adc2cd5504383edd48f9d38a84f08249fa7d88bd /modules/mono/glue/Managed/Files/MathfEx.cs | |
parent | 7f7d97f536ebbf5aa2e9335da728aa2056710297 (diff) |
[Mono] Approximate equality
Diffstat (limited to 'modules/mono/glue/Managed/Files/MathfEx.cs')
-rw-r--r-- | modules/mono/glue/Managed/Files/MathfEx.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/glue/Managed/Files/MathfEx.cs b/modules/mono/glue/Managed/Files/MathfEx.cs index 414762f7b1..d6eb65b097 100644 --- a/modules/mono/glue/Managed/Files/MathfEx.cs +++ b/modules/mono/glue/Managed/Files/MathfEx.cs @@ -36,9 +36,9 @@ namespace Godot return (int)Math.Round(s); } - public static bool IsEqualApprox(real_t a, real_t b, real_t ratio = Mathf.Epsilon) + public static bool IsEqualApprox(real_t a, real_t b, real_t tolerance) { - return Abs(a - b) < ratio; + return Abs(a - b) < tolerance; } } }
\ No newline at end of file |