LayoutDoubleUtil.AreClose Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AreClose(Double, Double) |
Determines if two double values are close to each other. |
AreClose(Point, Point) |
Determines if two points are close to each other. The points are close if their x-coordinates are close and their y-coordinates are close. |
AreClose(Rect, Rect) |
Determines if two rectangles are close to each other. The rectangles are close if their origins are close and their sizes are close. |
AreClose(Size, Size) |
Determines if two sizes are close to each other. The sizes are close if their widths are close and their heights are close. |
AreClose(Double, Double)
Determines if two double values are close to each other.
public:
[System::Runtime::CompilerServices::Extension]
static bool AreClose(double value1, double value2);
public:
[System::Runtime::CompilerServices::Extension]
static bool AreClose(double value1, double value2);
public static bool AreClose (this double value1, double value2);
static member AreClose : double * double -> bool
<Extension()>
Public Function AreClose (value1 As Double, value2 As Double) As Boolean
Parameters
- value1
- Double
First value to compare
- value2
- Double
Second value to compare
Returns
True if the values are close, false if they are not
Applies to
AreClose(Point, Point)
Determines if two points are close to each other. The points are close if their x-coordinates are close and their y-coordinates are close.
public:
[System::Runtime::CompilerServices::Extension]
static bool AreClose(System::Windows::Point size1, System::Windows::Point size2);
public static bool AreClose (this System.Windows.Point size1, System.Windows.Point size2);
static member AreClose : System.Windows.Point * System.Windows.Point -> bool
<Extension()>
Public Function AreClose (size1 As Point, size2 As Point) As Boolean
Parameters
- size1
- Point
First value to compare
- size2
- Point
Second value to compare
Returns
True if the values are close, false if they are not
Applies to
AreClose(Rect, Rect)
Determines if two rectangles are close to each other. The rectangles are close if their origins are close and their sizes are close.
public:
static bool AreClose(System::Windows::Rect rect1, System::Windows::Rect rect2);
public static bool AreClose (System.Windows.Rect rect1, System.Windows.Rect rect2);
static member AreClose : System.Windows.Rect * System.Windows.Rect -> bool
Public Function AreClose (rect1 As Rect, rect2 As Rect) As Boolean
Parameters
- rect1
- Rect
First value to compare
- rect2
- Rect
Second value to compare
Returns
True if the values are close, false if they are not
Applies to
AreClose(Size, Size)
Determines if two sizes are close to each other. The sizes are close if their widths are close and their heights are close.
public:
[System::Runtime::CompilerServices::Extension]
static bool AreClose(System::Windows::Size size1, System::Windows::Size size2);
public static bool AreClose (this System.Windows.Size size1, System.Windows.Size size2);
static member AreClose : System.Windows.Size * System.Windows.Size -> bool
<Extension()>
Public Function AreClose (size1 As Size, size2 As Size) As Boolean
Parameters
- size1
- Size
First value to compare
- size2
- Size
Second value to compare
Returns
True if the values are close, false if they are not