public final class Mathematics extends Object
Modifier and Type | Method and Description |
---|---|
static double |
clamp(double min,
double value,
double max)
Clamp the given value to the given range.
|
static float |
clamp(float min,
float value,
float max)
Clamp the given value to the given range.
|
static int |
clamp(int min,
int value,
int max)
Clamp the given value to the given range.
|
static long |
clamp(long min,
long value,
long max)
Clamp the given value to the given range.
|
Copyright © 2016. All rights reserved.