Class MathHelper

java.lang.Object
com.thevoxelbox.voxelsniper.util.math.MathHelper

public final class MathHelper extends Object
  • Method Details

    • circleArea

      public static double circleArea(int radius)
    • sphereVolume

      public static double sphereVolume(int radius)
    • square

      public static int square(int number)
    • square

      public static double square(double number)
    • cube

      public static int cube(int number)
    • cube

      public static double cube(double number)
    • minNumberType

      public static Number minNumberType(Class<?> clazz)
      Return the min number for a given type.
      Parameters:
      clazz - the class
      Returns:
      the min number or NaN
      Since:
      3.0.0
    • maxNumberType

      public static Number maxNumberType(Class<?> clazz)
      Return the max number for a given type.
      Parameters:
      clazz - the class
      Returns:
      the max number or NaN
      Since:
      3.0.0