C# Class SuperMap.WinRT.Utilities.MathUtil

Exibir arquivo Open project: SuperMap/iClient-for-Win8

Public Methods

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

判断值是否超出最大最小值得范围。如果超出,返回最大值/最小值。

Method Details

CheckNewAndOldEqual() public static method

public static CheckNewAndOldEqual ( double newValues, double oldValues ) : bool
newValues double
oldValues double
return bool

GetIndex() public static method

public static GetIndex ( double resolution, double resolutions ) : int
resolution double
resolutions double
return int

GetNearest() public static method

public static GetNearest ( double resolution, double resolutions, double minRes, double maxRes ) : double
resolution double
resolutions double
minRes double
maxRes double
return double

GetNearest() public static method

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

GetNearestIndex() public static method

public static GetNearestIndex ( double resolution, double resolutions ) : int
resolution double
resolutions double
return int

GetNearestIndex() public static method

public static GetNearestIndex ( double resolution, double resolutions, double minRes, double maxRes ) : int
resolution double
resolutions double
minRes double
maxRes double
return int

MinMaxCheck() public static method

判断值是否超出最大最小值得范围。如果超出,返回最大值/最小值。
public static MinMaxCheck ( double value, double minValue, double maxValue ) : double
value double
minValue double
maxValue double
return double