File: cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DoubleExtensions.cs
Project: ndp\System.Data.csproj (System.Data)
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//------------------------------------------------------------
 
namespace System.Activities.Presentation.FreeFormEditing
{
    using System;
    using System.Windows;
 
    internal static class DoubleExtensions
    {
        public static bool IsEqualTo(this double a, double b)
        {
            return Math.Abs(a - b) < DesignerGeometryHelper.EPS;
        }
 
        public static bool IsNoGreaterThan(this double a, double b)
        {
            return a <= b + DesignerGeometryHelper.EPS;
        }
 
        public static bool IsNoLessThan(this double a, double b)
        {
            return a >= b - DesignerGeometryHelper.EPS;
        }
    }
}