Static Public Member Functions | |
static int | mod (int a, int b) |
static float | mod (float a, float b) |
A utility class containing arithmetic and geometry helper methods.
Definition at line 37 of file MathUtils.java.
static int edu.nimbus.glass.util.MathUtils.mod | ( | int | a, |
int | b | ||
) | [inline, static] |
Calculates
a mod b
in a way that respects negative values (for example,
mod(-1, 5) == 4
, rather than
-1
).
a | the dividend |
b | the divisor |
a mod b
Definition at line 47 of file MathUtils.java.
static float edu.nimbus.glass.util.MathUtils.mod | ( | float | a, |
float | b | ||
) | [inline, static] |
Calculates
a mod b
in a way that respects negative values (for example,
mod(-1, 5) == 4
, rather than
-1
).
a | the dividend |
b | the divisor |
a mod b
Definition at line 59 of file MathUtils.java.