C# 클래스 SilverFlow.Controls.Extensions.MathExtensions

Math extensions
파일 보기 프로젝트 열기: Zoomicon/ZUI

공개 메소드들

메소드 설명
AbsMin ( double num1, double num2 ) : double

Compares two numbers without their signs and gets absolutely minimal value.

EnsureInRange ( this number, double low, double high ) : double

Ensures the given number is in the specified range.

IsNear ( this number, double testNumber, double accuracy ) : bool

Determines whether the specified number is near the test number.

IsNotSet ( this number ) : bool

Determines whether the number is NaN.

ValueOrZero ( this number ) : double

Returns a double value if it is not a NAN, or zero.

메소드 상세

AbsMin() 공개 정적인 메소드

Compares two numbers without their signs and gets absolutely minimal value.
public static AbsMin ( double num1, double num2 ) : double
num1 double First number.
num2 double Second number.
리턴 double

EnsureInRange() 공개 정적인 메소드

Ensures the given number is in the specified range.
public static EnsureInRange ( this number, double low, double high ) : double
number this The number.
low double The lower limit.
high double The upper limit.
리턴 double

IsNear() 공개 정적인 메소드

Determines whether the specified number is near the test number.
public static IsNear ( this number, double testNumber, double accuracy ) : bool
number this The number.
testNumber double The test number.
accuracy double Accuracy.
리턴 bool

IsNotSet() 공개 정적인 메소드

Determines whether the number is NaN.
public static IsNotSet ( this number ) : bool
number this The number.
리턴 bool

ValueOrZero() 공개 정적인 메소드

Returns a double value if it is not a NAN, or zero.
public static ValueOrZero ( this number ) : double
number this The number.
리턴 double