public class Util extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
EPSILON
doubles that differ by less than EPSILON should be considered equals
|
private static java.util.Random |
RANDOM |
Modifier | Constructor and Description |
---|---|
private |
Util() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isEquals(double x,
double y) |
static boolean |
isLess(double x,
double y) |
static boolean |
isLessOrEquals(double x,
double y) |
static double |
nextRandom(double min,
double max) |
static void |
setRandomSeed(long seed) |
private static java.util.Random RANDOM
public static final double EPSILON
private Util()
public static boolean isEquals(double x, double y)
public static boolean isLessOrEquals(double x, double y)
public static boolean isLess(double x, double y)
public static void setRandomSeed(long seed)
public static double nextRandom(double min, double max)