public class ExtraMath
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
CLOSE |
static double |
EPSILON |
Constructor and Description |
---|
ExtraMath() |
Modifier and Type | Method and Description |
---|---|
static boolean |
close(double v,
double w) |
static boolean |
close(double v,
double w,
double tol)
Are v and w "close" to each other?
|
static double |
closeFloor(double v)
Returns floor(v) except when v is very close to the next number, when it
returns ceil(v);
|
public static boolean close(double v, double w, double tol)
public static boolean close(double v, double w)
public static double closeFloor(double v)