Class MathHelper
java.lang.Object
com.thevoxelbox.voxelsniper.util.math.MathHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublecircleArea(int radius) static doublecube(double number) static intcube(int number) static NumbermaxNumberType(Class<?> clazz) Return the max number for a given type.static NumberminNumberType(Class<?> clazz) Return the min number for a given type.static doublesphereVolume(int radius) static doublesquare(double number) static intsquare(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
-