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 数组。
|
public static boolean containsDouble(double[] arrays, double toFind)
public static boolean containsDouble(double[] arrays, double toFind, double floatPrecision)
public static int getMatchedIndex(double[] doubleArray, double toMatchedDouble)
public static double[] unionDoubles(double[] doubles1, double[] doubles2)
doubles1
-doubles2
-public static double[] doubleListToArray(java.util.List<java.lang.Double> toAppendEles)
toAppendEles
- 为null时,返回nullpublic static boolean doubleEquals(double d1, double d2)
public static boolean doubleEquals(double d1, double d2, double floatPrecision)