gnu.util
Class Math
java.lang.Object
gnu.util.Math
public class Math
- extends java.lang.Object
Common math-related utility.
Constructor Summary |
Math()
|
Method Summary |
static double |
clamp(double i,
double low,
double high)
|
static float |
clamp(float i,
float low,
float high)
|
static int |
clamp(int i,
int low,
int high)
|
static long |
clamp(long i,
long low,
long high)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Math
public Math()
clamp
public static double clamp(double i,
double low,
double high)
clamp
public static float clamp(float i,
float low,
float high)
clamp
public static int clamp(int i,
int low,
int high)
clamp
public static long clamp(long i,
long low,
long high)