Package com.day.util
Class Math
java.lang.Object
com.day.util.Math
This class provides some mathematical utilities that extends those of
Math.- Since:
- antbear Audience wad
-
Method Summary
Modifier and TypeMethodDescriptionstatic final doublemax3(double a, double b, double c) Returns the largest of the three argument values.static final intmax3(int a, int b, int c) Returns the largest of the three argument values.static final doublemin3(double a, double b, double c) Returns the smallest of the three argument values.static final intmin3(int a, int b, int c) Returns the smallest of the three argument values.
-
Method Details
-
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
-