d74169401ee4c06b38cce17eb21ccc9f124042f3
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / Base / Core / Internal / PropertyEditing / FromExpression / Framework / Tolerances.cs
1 // -------------------------------------------------------------------
2 // Description:
3 // Provides helper functions handling move and hit detection 
4 // tolerances.
5 //
6 // Copyright (c) Microsoft Corporation. All Rights Reserved.
7 // -------------------------------------------------------------------
8
9 //Cider comment:
10 //  - Class has many members that we don't use. 
11 //  - I have removed them to avoid FXCop warning and lowering code coverage 
12
13 //From \\authoring\Sparkle\Source\1.0.1083.0\Common\Source\Framework
14 namespace System.Activities.Presentation.Internal.PropertyEditing.FromExpression.Framework
15 {
16     using System;
17     using System.Windows;
18     using System.Windows.Media.Media3D;
19     internal static class Tolerances
20     {
21         //Cider private static readonly double ZeroThreshold = 2.2204460492503131e-015; 
22         private const double ZeroThreshold = 2.2204460492503131e-015;
23
24         public static bool NearZero(double d)
25         {
26             return Math.Abs(d) < Tolerances.ZeroThreshold;
27         }
28
29     }
30 }