- Maths - Class in mikera.util
-
Helpful maths functions
Focus on using floats rather than doubles for speed
- Maths() - Constructor for class mikera.util.Maths
-
- MathsException - Exception in mikera.util.mathz
-
- MathsException(String) - Constructor for exception mikera.util.mathz.MathsException
-
- MathsException(Throwable) - Constructor for exception mikera.util.mathz.MathsException
-
- max(double, double, double) - Static method in class mikera.util.Maths
-
Return the maximum of three values
- max(float, float, float) - Static method in class mikera.util.Maths
-
Return the maximum of three values
- max(float, float, float, float) - Static method in class mikera.util.Maths
-
Return the maximum of four values
- max(int, int) - Static method in class mikera.util.Maths
-
Return the maximum of two numbers
- max(float, float) - Static method in class mikera.util.Maths
-
Return the maximum of two numbers
- max(int, int, int) - Static method in class mikera.util.Maths
-
Return the maximum of three numbers
- max2(int, int) - Static method in class mikera.util.mathz.AlternativeMaths
-
Branchless max for ints
- middle(int, int, int) - Static method in class mikera.util.Maths
-
Return the middle value of 3 numbers
Can use faster "bound" method if first and last parameters are in order
- middle(float, float, float) - Static method in class mikera.util.Maths
-
Return the middle value of 3 numbers
Can use faster "bound" method if first and last parameters are in order
- mikera.util - package mikera.util
-
- mikera.util.mathz - package mikera.util.mathz
-
- min(double, double, double) - Static method in class mikera.util.Maths
-
Return the minimum of three values
- min(float, float, float) - Static method in class mikera.util.Maths
-
Return the minimum of three values
- min(float, float, float, float) - Static method in class mikera.util.Maths
-
Return the minimum of four values
- min(int, int) - Static method in class mikera.util.Maths
-
Return the minimum of two numbers
- min(float, float) - Static method in class mikera.util.Maths
-
Return the minimum of two numbers
- min(int, int, int) - Static method in class mikera.util.Maths
-
Return the minimum of three numbers
- min2(int, int) - Static method in class mikera.util.mathz.AlternativeMaths
-
Branchless min for ints
- mod(int, int) - Static method in class mikera.util.Maths
-
Integer modulus function
- mod(double, double) - Static method in class mikera.util.Maths
-
Double mod function with fractional divisor
- mod(float, float) - Static method in class mikera.util.mathz.FloatMaths
-
Mod function implemented for float values
- modPower32Bit(int, int) - Static method in class mikera.util.Maths
-
Returns (x^pow) mod (2^32) as an int