Package com.day.util
Class Math
- java.lang.Object
-
- com.day.util.Math
-
public final class Math extends java.lang.Object
This class provides some mathematical utilities that extends those ofMath
.- Since:
- antbear Audience wad
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
max3(double a, double b, double c)
Returns the largest of the three argument values.static int
max3(int a, int b, int c)
Returns the largest of the three argument values.static double
min3(double a, double b, double c)
Returns the smallest of the three argument values.static int
min3(int a, int b, int c)
Returns the smallest of the three argument values.
-
-
-
Method Detail
-
min3
public static final int min3(int a, int b, int c)
Returns the smallest of the three argument values.- Parameters:
a
- The first valueb
- The second valuec
- The third value- Returns:
- The smallest value of the three
-
max3
public static final int max3(int a, int b, int c)
Returns the largest of the three argument values.- Parameters:
a
- The first valueb
- The second valuec
- The third value- Returns:
- The largest value of the three
-
min3
public static final double min3(double a, double b, double c)
Returns the smallest of the three argument values.- Parameters:
a
- The first valueb
- The second valuec
- The third value- Returns:
- The smallest value of the three
-
max3
public static final double max3(double a, double b, double c)
Returns the largest of the three argument values.- Parameters:
a
- The first valueb
- The second valuec
- The third value- Returns:
- The largest value of the three
-
-