public class ImpulseMath
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
BIAS_ABSOLUTE |
static float |
BIAS_RELATIVE |
static float |
DT |
static float |
EPSILON |
static float |
EPSILON_SQ |
static Vec2 |
GRAVITY |
static float |
PENETRATION_ALLOWANCE |
static float |
PENETRATION_CORRETION |
static float |
PI |
| Constructor and Description |
|---|
ImpulseMath() |
| Modifier and Type | Method and Description |
|---|---|
static float |
clamp(float min,
float max,
float a) |
static boolean |
equal(float a,
float b) |
static boolean |
gt(float a,
float b) |
static float |
random(float min,
float max) |
static int |
random(int min,
int max) |
static int |
round(float a) |
public static final float PI
public static final float EPSILON
public static final float EPSILON_SQ
public static final float BIAS_RELATIVE
public static final float BIAS_ABSOLUTE
public static final float DT
public static final Vec2 GRAVITY
public static final float PENETRATION_ALLOWANCE
public static final float PENETRATION_CORRETION
public static boolean equal(float a,
float b)
public static float clamp(float min,
float max,
float a)
public static int round(float a)
public static float random(float min,
float max)
public static int random(int min,
int max)
public static boolean gt(float a,
float b)