|
|||||||||
| 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(String[] args)
test |
static String |
showBytes(byte[] buff)
|
static void |
showBytes(byte[] buff,
Formatter f)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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(String[] args)
public static String showBytes(byte[] buff)
public static void showBytes(byte[] buff,
Formatter f)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||