Метод | Описание | |
---|---|---|
CheckNewAndOldEqual ( double newValues, double oldValues ) : bool | ||
GetIndex ( double resolution, double resolutions ) : int | ||
GetNearest ( double resolution, double resolutions, double minRes, double maxRes ) : double | ||
GetNearestIndex ( double resolution, double resolutions ) : int | ||
GetNearestIndex ( double resolution, double resolutions, double minRes, double maxRes ) : int | ||
MinMaxCheck ( double value, double minValue, double maxValue ) : double |
判断值是否超出最大最小值得范围。如果超出,返回最大值/最小值。
|
public static CheckNewAndOldEqual ( double newValues, double oldValues ) : bool | ||
newValues | double | |
oldValues | double | |
Результат | bool |
public static GetIndex ( double resolution, double resolutions ) : int | ||
resolution | double | |
resolutions | double | |
Результат | int |
public static GetNearest ( double resolution, double resolutions, double minRes, double maxRes ) : double | ||
resolution | double | |
resolutions | double | |
minRes | double | |
maxRes | double | |
Результат | double |
public static GetNearestIndex ( double resolution, double resolutions ) : int | ||
resolution | double | |
resolutions | double | |
Результат | int |
public static GetNearestIndex ( double resolution, double resolutions, double minRes, double maxRes ) : int | ||
resolution | double | |
resolutions | double | |
minRes | double | |
maxRes | double | |
Результат | int |
public static MinMaxCheck ( double value, double minValue, double maxValue ) : double | ||
value | double | |
minValue | double | |
maxValue | double | |
Результат | double |