com.supermap.services.tilesource
类 MathUtil
- java.lang.Object
-
- com.supermap.services.tilesource.MathUtil
-
public class MathUtil extends java.lang.Object
-
-
构造器概要
构造器 构造器和说明 MathUtil()
-
方法概要
方法 限定符和类型 方法和说明 static boolean
containsDouble(double[] arrays, double toFind)
static boolean
containsDouble(double[] arrays, double toFind, double floatPrecision)
static boolean
doubleEquals(double d1, double d2)
static boolean
doubleEquals(double d1, double d2, double floatPrecision)
static double[]
doubleListToArray(java.util.List<java.lang.Double> toAppendEles)
double 列表转换成数组。static int
getMatchedIndex(double[] doubleArray, double toMatchedDouble)
static double[]
unionDoubles(double[] doubles1, double[] doubles2)
合并两个double 数组。
-
-
-
方法详细资料
-
containsDouble
public static boolean containsDouble(double[] arrays, double toFind)
-
containsDouble
public static boolean containsDouble(double[] arrays, double toFind, double floatPrecision)
-
getMatchedIndex
public static int getMatchedIndex(double[] doubleArray, double toMatchedDouble)
-
unionDoubles
public static double[] unionDoubles(double[] doubles1, double[] doubles2)
合并两个double 数组。- 参数:
doubles1
-doubles2
-- 返回:
-
doubleListToArray
public static double[] doubleListToArray(java.util.List<java.lang.Double> toAppendEles)
double 列表转换成数组。- 参数:
toAppendEles
- 为null时,返回null- 返回:
-
doubleEquals
public static boolean doubleEquals(double d1, double d2)
-
doubleEquals
public static boolean doubleEquals(double d1, double d2, double floatPrecision)
-
-