Udostępnij za pośrednictwem


LayoutDoubleUtil Class

Definition

LayoutDoubleUtil, uses fixed eps unlike DoubleUtil which uses relative one. This is more suitable for some layout comparisons because the computation paths in layout may easily be quite long so DoubleUtil method gives a lot of false results, while bigger absolute deviation is normally harmless in layout.

public ref class LayoutDoubleUtil abstract sealed
public ref class LayoutDoubleUtil abstract sealed
class LayoutDoubleUtil abstract sealed
public static class LayoutDoubleUtil
type LayoutDoubleUtil = class
Public Module LayoutDoubleUtil
Inheritance
LayoutDoubleUtil

Remarks

The class is similar to System.Windows.LayoutDoubleUtil, which is unfortunately internal. If being built for MS.VS.Imaging the class is internal, otherwise it is public.

Methods

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.

GreaterThan(Double, Double)

Determines if one double value is greater than another, but not close to it.

GreaterThanOrClose(Double, Double)

Determines if one double value is greater than or close to another.

IsNonreal(Double)

Determines whether a double value represents a non-real value.

LessThan(Double, Double)

Determines if one double value is less than another, but not close to it.

LessThanOrClose(Double, Double)

Determines if one double value is less than or close to another.

Applies to