Package net.swofty.utility
Class MathUtility
java.lang.Object
net.swofty.utility.MathUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
arrayDValue
(Object[] array, int index, T defaultValue) static double
normalizeAngle
(double angle, double maximum) static double
random
(double min, double max) static int
random
(int min, int max)
-
Constructor Details
-
MathUtility
public MathUtility()
-
-
Method Details
-
normalizeAngle
public static double normalizeAngle(double angle, double maximum) -
arrayDValue
-
random
public static double random(double min, double max) -
random
public static int random(int min, int max)
-