public class MathUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static double |
M_180_OVER_PI |
static double |
PI_OVER_180 |
| Modifier | Constructor and Description |
|---|---|
private |
MathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
clamp(double value,
double min,
double max) |
static float |
clamp(float value,
float min,
float max) |
static int |
clamp(int value,
int min,
int max) |
static boolean |
inBounds(double value,
double min,
double max) |
static boolean |
inBounds(float value,
float min,
float max) |
static boolean |
inBounds(int value,
int min,
int max) |
static double |
pythagorize(double a,
double b) |
static double |
squareSign(double value) |
public static final double PI_OVER_180
public static final double M_180_OVER_PI
public static double clamp(double value,
double min,
double max)
value - min - max - public static float clamp(float value,
float min,
float max)
value - min - max - public static int clamp(int value,
int min,
int max)
value - min - max - public static boolean inBounds(double value,
double min,
double max)
value - min - max - public static boolean inBounds(float value,
float min,
float max)
value - min - max - public static boolean inBounds(int value,
int min,
int max)
value - min - max - public static double pythagorize(double a,
double b)
a - b - public static double squareSign(double value)
value -