Skip to main content

FlixelMathUtil

View source

class

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:

NameDescription
valueThe float value to round.
decimalPlacesThe number of decimal places to round to.

Returns: The rounded float value.