C# 클래스 PclUnit.Constraints.Pieces.Tolerance

The Tolerance class generalizes the notion of a tolerance within which an equality test succeeds. Normally, it is used with numeric types, but it can be used with any type that supports taking a difference between two objects and comparing that difference to a value.
파일 보기 프로젝트 열기: jbtule/PclUnit 1 사용 예제들

공개 메소드들

메소드 설명
Tolerance ( object amount ) : System

Constructs a linear tolerance of a specdified amount

Tolerance ( object amount, ToleranceMode mode ) : System

Constructs a tolerance given an amount and ToleranceMode

비공개 메소드들

메소드 설명
CheckLinearAndNumeric ( ) : void

Tests that the current Tolerance is linear with a numeric value, throwing an exception if it is not.

메소드 상세

Tolerance() 공개 메소드

Constructs a linear tolerance of a specdified amount
public Tolerance ( object amount ) : System
amount object
리턴 System

Tolerance() 공개 메소드

Constructs a tolerance given an amount and ToleranceMode
public Tolerance ( object amount, ToleranceMode mode ) : System
amount object
mode ToleranceMode
리턴 System