Package com.globalmentor.java
Class Floats
java.lang.Object
com.globalmentor.java.Floats
Utilities for manipulating float objects and values.
- Author:
- Garret Wilson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
checkRange
(float value, float rangeMin, float rangeMax) Checks to make sure that a given value is within the given range.
-
Constructor Details
-
Floats
public Floats()
-
-
Method Details
-
checkRange
public static float checkRange(float value, float rangeMin, float rangeMax) Checks to make sure that a given value is within the given range.- Parameters:
value
- The value to check.rangeMin
- The minimum range value, inclusive.rangeMax
- The maximum range value, inclusive.- Returns:
- The given value.
- Throws:
IllegalArgumentException
- if the value is less than the range minimum or greater than the range maximum.
-