1 // -------------------------------------------------------------------
3 // Provides helper functions handling move and hit detection
6 // Copyright (c) Microsoft Corporation. All Rights Reserved.
7 // -------------------------------------------------------------------
10 // - Class has many members that we don't use.
11 // - I have removed them to avoid FXCop warning and lowering code coverage
13 //From \\authoring\Sparkle\Source\1.0.1083.0\Common\Source\Framework
14 namespace System.Activities.Presentation.Internal.PropertyEditing.FromExpression.Framework
18 using System.Windows.Media.Media3D;
19 internal static class Tolerances
21 //Cider private static readonly double ZeroThreshold = 2.2204460492503131e-015;
22 private const double ZeroThreshold = 2.2204460492503131e-015;
24 public static bool NearZero(double d)
26 return Math.Abs(d) < Tolerances.ZeroThreshold;