public class MathHelpers
extends java.lang.Object
| Constructor and Description |
|---|
MathHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static int |
factorToBursts(double value,
int timing)
Convert a double to a natural number taking into account a circular time counter
that is able to offset factor values if required.
|
static float |
normalizeAngle_180(float angle)
Normalize an angle around 180 degrees so that this value doesn't become too large/small.
|
public static float normalizeAngle_180(float angle)
angle - The angle to normalize.public static int factorToBursts(double value,
int timing)
value - The input value.timing - The timing value, should increment each time this is called for good results.