Math might also contain but doesn't.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static double | Returns: value if lowerBound <= value <= upperBound lowerBound if value < lowerBound upperBound if upperBound < valuethe interval's lower bound; included in the interval lowerBound, double the value which will be checked value, double the interval's upper bound; included in the interval upperBound)Checks whether the specified value lies in the closed interval defined by the specified bounds. |
| public static boolean | Returns: true if lowerBound <= value <= upperBound false otherwisethe interval's lower bound; included in the interval lowerBound, double the value which will be checked value, double the interval's upper bound; included in the interval upperBound)Checks whether the specified value lies in the closed interval defined by the specified bounds. |
| public static double | Returns: a value from the array which is smaller then or equal to any other value from the arraya non-null, non-empty array of double values values)Returns the smallest value in the specified array according to |
| MathTools | back to summary |
|---|---|
| public MathTools() | |
| inInterval | back to summary |
|---|---|
| public static double inInterval(double lowerBound, double value, double upperBound) Checks whether the specified value lies in the closed interval defined by the specified bounds. If it does, it is returned; otherwise the bound closer to the value will be returned.
| |
| isInInterval | back to summary |
|---|---|
| public static boolean isInInterval(double lowerBound, double value, double upperBound) Checks whether the specified value lies in the closed interval defined by the specified bounds.
| |
| min | back to summary |
|---|---|
| public static double min(double... values) Returns the smallest value in the specified array according to
| |