C# Class SuperMap.WindowsPhone.Utilities.MathUtil

Afficher le fichier Open project: SuperMap/iClient-for-Win8

Méthodes publiques

Méthode Description
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

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

Method Details

CheckNewAndOldEqual() public static méthode

public static CheckNewAndOldEqual ( double newValues, double oldValues ) : bool
newValues double
oldValues double
Résultat bool

GetIndex() public static méthode

public static GetIndex ( double resolution, double resolutions ) : int
resolution double
resolutions double
Résultat int

GetNearest() public static méthode

public static GetNearest ( double resolution, double resolutions, double minRes, double maxRes ) : double
resolution double
resolutions double
minRes double
maxRes double
Résultat double

GetNearestIndex() public static méthode

public static GetNearestIndex ( double resolution, double resolutions ) : int
resolution double
resolutions double
Résultat int

GetNearestIndex() public static méthode

public static GetNearestIndex ( double resolution, double resolutions, double minRes, double maxRes ) : int
resolution double
resolutions double
minRes double
maxRes double
Résultat int

MinMaxCheck() public static méthode

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