C# Класс Afterglow.Math.MathExtensions

Contains extension methods.
Показать файл Открыть проект

Открытые методы

Метод Описание
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