Class MathHelper
java.lang.Object
com.thevoxelbox.voxelsniper.util.math.MathHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
circleArea
(int radius) static double
cube
(double number) static int
cube
(int number) static Number
maxNumberType
(Class<?> clazz) Return the max number for a given type.static Number
minNumberType
(Class<?> clazz) Return the min number for a given type.static double
sphereVolume
(int radius) static double
square
(double number) static int
square
(int number)
-
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
Return the min number for a given type.- Parameters:
clazz
- the class- Returns:
- the min number or NaN
- Since:
- 3.0.0
-
maxNumberType
Return the max number for a given type.- Parameters:
clazz
- the class- Returns:
- the max number or NaN
- Since:
- 3.0.0
-