Method | Description | |
---|---|---|
CheckNewAndOldEqual ( double newValues, double oldValues ) : bool | ||
GetIndex ( double resolution, double resolutions ) : int | ||
GetNearest ( double resolution, double resolutions, double minRes, double maxRes ) : double | ||
GetNearest ( double targetRes, double zoomRes, double nextRes, 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 | |
return | bool |
public static GetIndex ( double resolution, double resolutions ) : int | ||
resolution | double | |
resolutions | double | |
return | int |
public static GetNearest ( double resolution, double resolutions, double minRes, double maxRes ) : double | ||
resolution | double | |
resolutions | double | |
minRes | double | |
maxRes | double | |
return | double |
public static GetNearest ( double targetRes, double zoomRes, double nextRes, double resolutions, double minRes, double maxRes ) : double | ||
targetRes | double | |
zoomRes | double | |
nextRes | double | |
resolutions | double | |
minRes | double | |
maxRes | double | |
return | double |
public static GetNearestIndex ( double resolution, double resolutions ) : int | ||
resolution | double | |
resolutions | double | |
return | int |
public static GetNearestIndex ( double resolution, double resolutions, double minRes, double maxRes ) : int | ||
resolution | double | |
resolutions | double | |
minRes | double | |
maxRes | double | |
return | int |
public static MinMaxCheck ( double value, double minValue, double maxValue ) : double | ||
value | double | |
minValue | double | |
maxValue | double | |
return | double |