C# Class RedBadger.Xpf.Internal.DoubleExtensions

Mostra file Open project: redbadger/XPF

Public Methods

Method Description
Coerce ( this offset, double min, double max ) : double
EnsurePositive ( this value ) : double
IsCloseTo ( this value1, double value2 ) : bool
IsDifferentFrom ( this value1, double value2 ) : bool
IsGreaterThan ( this value1, double value2 ) : bool
IsGreaterThanOrCloseTo ( this value1, double value2 ) : bool
IsLessThan ( this value1, double value2 ) : bool
IsLessThanOrCloseTo ( this value1, double value2 ) : bool

Method Details

Coerce() public static method

public static Coerce ( this offset, double min, double max ) : double
offset this
min double
max double
return double

EnsurePositive() public static method

public static EnsurePositive ( this value ) : double
value this
return double

IsCloseTo() public static method

public static IsCloseTo ( this value1, double value2 ) : bool
value1 this
value2 double
return bool

IsDifferentFrom() public static method

public static IsDifferentFrom ( this value1, double value2 ) : bool
value1 this
value2 double
return bool

IsGreaterThan() public static method

public static IsGreaterThan ( this value1, double value2 ) : bool
value1 this
value2 double
return bool

IsGreaterThanOrCloseTo() public static method

public static IsGreaterThanOrCloseTo ( this value1, double value2 ) : bool
value1 this
value2 double
return bool

IsLessThan() public static method

public static IsLessThan ( this value1, double value2 ) : bool
value1 this
value2 double
return bool

IsLessThanOrCloseTo() public static method

public static IsLessThanOrCloseTo ( this value1, double value2 ) : bool
value1 this
value2 double
return bool