Package org.cloudburstmc.mojava.runtime
Class MoMath
java.lang.Object
org.cloudburstmc.mojava.runtime.MoMath
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubledieRoll(double num, double low, double high) static intdieRollInt(int num, int low, int high) static doublehermiteBlend(double t) static doubleinverseLerp(double start, double end, double value) static doublelerp(double start, double end, double amount) static doublelerpRotate(double start, double end, double amount) static doubleminAngle(double value) static doubleradify(double num) static doublerandom(double low, double high) static intrandomInt(int low, int high)
-
Field Details
-
LIBRARY
-
-
Constructor Details
-
MoMath
public MoMath()
-
-
Method Details
-
random
public static double random(double low, double high) -
randomInt
public static int randomInt(int low, int high) -
dieRoll
public static double dieRoll(double num, double low, double high) -
dieRollInt
public static int dieRollInt(int num, int low, int high) -
hermiteBlend
public static double hermiteBlend(double t) -
inverseLerp
public static double inverseLerp(double start, double end, double value) -
minAngle
public static double minAngle(double value) -
lerp
public static double lerp(double start, double end, double amount) -
lerpRotate
public static double lerpRotate(double start, double end, double amount) -
radify
public static double radify(double num)
-