public class Numbers
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
DOUBLE_EPS |
static float |
FLOAT_EPS |
Constructor and Description |
---|
Numbers() |
Modifier and Type | Method and Description |
---|---|
static double |
constrain(double amt,
double low,
double high) |
static float |
constrain(float amt,
float low,
float high) |
static int |
constrain(int amt,
int low,
int high) |
static boolean |
different(double a,
double b) |
static boolean |
different(float a,
float b) |
static boolean |
different(int a,
int b) |
static boolean |
different(long a,
long b) |
static boolean |
equal(double a,
double b) |
static boolean |
equal(float a,
float b) |
static boolean |
equal(int a,
int b) |
static boolean |
equal(long a,
long b) |
static double |
map(double value,
double start1,
float stop1,
double start2,
float stop2) |
static float |
map(float value,
float start1,
float stop1,
float start2,
float stop2) |
static double |
min(double a,
double b,
double c) |
static float |
min(float a,
float b,
float c) |
static int |
min(int a,
int b,
int c) |
static double |
parseDouble(java.lang.String what) |
static double |
parseDouble(java.lang.String what,
double otherwise) |
static float |
parseFloat(java.lang.String what) |
static float |
parseFloat(java.lang.String what,
float otherwise) |
static int |
parseInt(java.lang.String what) |
static int |
parseInt(java.lang.String what,
int otherwise) |
static long |
parseLong(java.lang.String what) |
static long |
parseLong(java.lang.String what,
int otherwise) |
static boolean |
whole(double a) |
static boolean |
whole(float a) |
public static boolean equal(int a, int b)
public static boolean different(int a, int b)
public static boolean equal(long a, long b)
public static boolean different(long a, long b)
public static boolean equal(float a, float b)
public static boolean different(float a, float b)
public static boolean whole(float a)
public static boolean equal(double a, double b)
public static boolean different(double a, double b)
public static boolean whole(double a)
public static float map(float value, float start1, float stop1, float start2, float stop2)
public static double map(double value, double start1, float stop1, double start2, float stop2)
public static int constrain(int amt, int low, int high)
public static float constrain(float amt, float low, float high)
public static double constrain(double amt, double low, double high)
public static final int min(int a, int b, int c)
public static final float min(float a, float b, float c)
public static final double min(double a, double b, double c)
public static final int parseInt(java.lang.String what)
public static final int parseInt(java.lang.String what, int otherwise)
public static final float parseFloat(java.lang.String what)
public static final float parseFloat(java.lang.String what, float otherwise)
public static long parseLong(java.lang.String what)
public static long parseLong(java.lang.String what, int otherwise)
public static double parseDouble(java.lang.String what)
public static double parseDouble(java.lang.String what, double otherwise)