| 12345678910111213141516 |
- // Copyright (c) The Avalonia Project. All rights reserved.
- // Licensed under the MIT license. See licence.md file in the project root for full license information.
- using System;
- namespace Avalonia.Animation.Utils
- {
- internal static class DoubleUtils
- {
- internal static bool AboutEqual(double x, double y)
- {
- double epsilon = Math.Max(Math.Abs(x), Math.Abs(y)) * 1E-15;
- return Math.Abs(x - y) <= epsilon;
- }
- }
- }
|