|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmaslab.util.MathUtil
public class MathUtil
Useful math utilities.
| Constructor Summary | |
|---|---|
MathUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
doubleEquals(double a,
double b)
Returns true if the two doubles are within a small epsilon of each other. |
static void |
main(java.lang.String[] args)
|
static double |
mod2pi(double v)
Ensure that v is [-PI, PI] |
static double |
mod2pi(double ref,
double v)
Returns a value of v wrapped such that ref and v differ by no more +/-PI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MathUtil()
| Method Detail |
|---|
public static double mod2pi(double v)
public static double mod2pi(double ref,
double v)
public static boolean doubleEquals(double a,
double b)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||