Package 

Object MathUtils

    • Method Detail

      • limit

         final Integer limit(Integer number, Integer between, Integer and)

        Limits the given number between the other values

        Parameters:
        number - The number to limit.
        between - The smallest value the number can take.
        and - The biggest value the number can take.
      • limit

         final Float limit(Float number, Float between, Float and)

        Limits the given number between the other values

        Parameters:
        number - The number to limit.
        between - The smallest value the number can take.
        and - The biggest value the number can take.
      • floor

         final Integer floor(Float value)

        Returns the largest integer less than or equal to the specified float. This method will only properly floor floats from -(2^14) to (Float.MAX_VALUE - 2^14).

      • ceil

         final Integer ceil(Float value)

        Returns the smallest integer greater than or equal to the specified float. This method will only properly ceil floats from -(2^14) to (Float.MAX_VALUE - 2^14).