File: System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DoubleExtensions.cs
Project: ndp\cdf\src\NetFx40\Tools\System.Activities.Presentation.csproj (System.Activities.Presentation)
//------------------------------------------------------------
// 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;
        }
    }
}