public class UCore
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
s
The screen pixel density scale.
|
| Constructor and Description |
|---|
UCore() |
| Modifier and Type | Method and Description |
|---|---|
static float |
clamp(double i)
Clamps to [0,1]
|
static float |
clamp(float i,
float min,
float max) |
static int |
clamp(int i,
int min,
int max) |
static void |
clearScreen(com.badlogic.gdx.graphics.Color color) |
static java.lang.Object |
getPrivate(java.lang.Object object,
java.lang.String name) |
static <T> boolean |
inBounds(int x,
int y,
int width,
int height) |
static <T> boolean |
inBounds(int x,
int y,
int z,
int[][][] array) |
static boolean |
inBounds(int x,
int y,
int z,
int size,
int padding) |
static <T> boolean |
inBounds(int x,
int y,
int z,
T[][][] array) |
static <T> boolean |
inBounds(int x,
int y,
T[][] array) |
static boolean |
inRect(float x,
float y,
float bx,
float by,
float tx,
float ty) |
static java.lang.String |
parseException(java.lang.Exception e) |
static float |
round(float a,
float b) |
static int |
scl(float a,
float b) |
public static final float s
public static <T> boolean inBounds(int x,
int y,
T[][] array)
public static <T> boolean inBounds(int x,
int y,
int z,
T[][][] array)
public static <T> boolean inBounds(int x,
int y,
int z,
int[][][] array)
public static boolean inBounds(int x,
int y,
int z,
int size,
int padding)
public static <T> boolean inBounds(int x,
int y,
int width,
int height)
public static boolean inRect(float x,
float y,
float bx,
float by,
float tx,
float ty)
public static float round(float a,
float b)
public static int scl(float a,
float b)
public static float clamp(float i,
float min,
float max)
public static float clamp(double i)
public static int clamp(int i,
int min,
int max)
public static java.lang.String parseException(java.lang.Exception e)
public static void clearScreen(com.badlogic.gdx.graphics.Color color)
public static java.lang.Object getPrivate(java.lang.Object object,
java.lang.String name)