Static method extensions to the Math class.
Math
static int
clamp(Math self, int value, int lower, int upper)
int
static float
clamp(Math self, float value, float lower, float upper)
float
class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
Clamp an int value to the given range.
Clamp a float value to the given range.
Groovy Documentation