API Documentation
Math Utils
List of available math events
Sqrt
This event will return the square root of a number.
public static float sqrt(float value)
Clamp
This event will clamp a value between a minimum and maximum value.
public static double clamp(double value, final double min, final double max)
Interpolate
This event will interpolate between two values.
public static int interpolateInt(final int oldValue, final int newValue, final double interpolationValue)
Round to Float
This event will round a float to a specified number of decimal places.
public static float roundToFloat(final double d)
Get Random Number
This event will return a random number between a minimum and maximum value.
public static int getRandomNumber(final int min, final int max)
Round To Place
This event will round a number to a specified number of decimal places.
public static double roundToPlace(final double value, final int places)