C# 클래스 Afterglow.Math.MathExtensions

Contains extension methods.
파일 보기 프로젝트 열기: Christof/afterglow

공개 메소드들

메소드 설명
Clamp ( this value, float min, float max ) : float

Clamps the value to the range given by min and max.

ClampMax ( this value, float max ) : float

Clamps the value to the given maximum.

ClampMin ( this value, float min ) : float

Clamps the value to the given minimum.

EqualsWithDelta ( this value, float other ) : bool

Indicates whether the two floats are equal under the consideration of Constants.DELTA.

EqualsWithDelta ( this value, float other, float delta ) : bool

Indicates whether the two floats are equal under the consideration of the given delta value.

메소드 상세

Clamp() 공개 정적인 메소드

Clamps the value to the range given by min and max.
public static Clamp ( this value, float min, float max ) : float
value this The value to be clamped.
min float The min value.
max float The max value.
리턴 float

ClampMax() 공개 정적인 메소드

Clamps the value to the given maximum.
public static ClampMax ( this value, float max ) : float
value this The value.
max float The maximum.
리턴 float

ClampMin() 공개 정적인 메소드

Clamps the value to the given minimum.
public static ClampMin ( this value, float min ) : float
value this The value.
min float The minimum.
리턴 float

EqualsWithDelta() 공개 정적인 메소드

Indicates whether the two floats are equal under the consideration of Constants.DELTA.
public static EqualsWithDelta ( this value, float other ) : bool
value this The value.
other float The other.
리턴 bool

EqualsWithDelta() 공개 정적인 메소드

Indicates whether the two floats are equal under the consideration of the given delta value.
public static EqualsWithDelta ( this value, float other, float delta ) : bool
value this The value.
other float The other.
delta float The delta.
리턴 bool