|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.util.Misc
public class Misc
Miscellaneous static routines.
Constructor Summary | |
---|---|
Misc()
|
Method Summary | |
---|---|
static boolean |
closeEnough(double v1,
double v2)
Check if numbers are equal with default tolerance |
static boolean |
closeEnough(double v1,
double v2,
double tol)
Check if numbers are equal with tolerance |
static boolean |
closeEnough(float v1,
float v2)
Check if numbers are equal with default tolerance |
static void |
main(java.lang.String[] args)
test |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Misc()
Method Detail |
---|
public static boolean closeEnough(double v1, double v2, double tol)
v1
- first floating point numberv2
- second floating point numbertol
- reletive tolerence
public static boolean closeEnough(double v1, double v2)
v1
- first floating point numberv2
- second floating point number
public static boolean closeEnough(float v1, float v2)
v1
- first floating point numberv2
- second floating point number
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |