1 //------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //------------------------------------------------------------
5 namespace System.Activities.Presentation.FreeFormEditing
10 internal static class DoubleExtensions
12 public static bool IsEqualTo(this double a, double b)
14 return Math.Abs(a - b) < DesignerGeometryHelper.EPS;
17 public static bool IsNoGreaterThan(this double a, double b)
19 return a <= b + DesignerGeometryHelper.EPS;
22 public static bool IsNoLessThan(this double a, double b)
24 return a >= b - DesignerGeometryHelper.EPS;