FlixelMathUtil
View sourceclass
org.flixelgdx.util.FlixelMathUtil
public final class FlixelMathUtil
Utility class for various math related functions used in FlixelGDX.
Methods
round(float, int)
public static float round(float value, int decimalPlaces)
Rounds a float value to a specified number of decimal places.
Parameters:
| Name | Description |
|---|---|
value | The float value to round. |
decimalPlaces | The number of decimal places to round to. |
Returns: The rounded float value.