Example usage for Java android.support.v4.math MathUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
float | clamp(float value, float min, float max) This method takes a numerical value and ensures it fits in a given numerical range. |
double | clamp(double value, double min, double max) This method takes a numerical value and ensures it fits in a given numerical range. |
int | clamp(int value, int min, int max) This method takes a numerical value and ensures it fits in a given numerical range. |