public class MathHelper
extends java.lang.Object
Constructor and Description |
---|
MathHelper() |
Modifier and Type | Method and Description |
---|---|
static int |
abs_int(int p_76130_0_) |
static double |
abs_max(double p_76132_0_,
double p_76132_2_) |
static float |
abs(float p_76135_0_) |
static double |
average(long[] p_76127_0_) |
static int |
bucketInt(int p_76137_0_,
int p_76137_1_) |
static int |
calculateLogBaseTwo(int p_151239_0_) |
static int |
ceiling_double_int(double p_76143_0_) |
static int |
ceiling_float_int(float p_76123_0_) |
static double |
clamp_double(double p_151237_0_,
double p_151237_2_,
double p_151237_4_) |
static float |
clamp_float(float p_76131_0_,
float p_76131_1_,
float p_76131_2_) |
static int |
clamp_int(int p_76125_0_,
int p_76125_1_,
int p_76125_2_) |
static float |
cos(float p_76134_0_) |
static double |
denormalizeClamp(double p_151238_0_,
double p_151238_2_,
double p_151238_4_) |
static long |
floor_double_long(double p_76124_0_) |
static int |
floor_double(double p_76128_0_) |
static int |
floor_float(float p_76141_0_) |
static int |
func_154353_e(double p_154353_0_) |
static int |
func_154354_b(int p_154354_0_,
int p_154354_1_) |
static double |
getRandomDoubleInRange(java.util.Random p_82716_0_,
double p_82716_1_,
double p_82716_3_) |
static int |
getRandomIntegerInRange(java.util.Random p_76136_0_,
int p_76136_1_,
int p_76136_2_) |
static double |
parseDoubleWithDefault(java.lang.String p_82712_0_,
double p_82712_1_) |
static double |
parseDoubleWithDefaultAndMax(java.lang.String p_82713_0_,
double p_82713_1_,
double p_82713_3_) |
static int |
parseIntWithDefault(java.lang.String p_82715_0_,
int p_82715_1_) |
static int |
parseIntWithDefaultAndMax(java.lang.String p_82714_0_,
int p_82714_1_,
int p_82714_2_) |
static float |
randomFloatClamp(java.util.Random p_151240_0_,
float p_151240_1_,
float p_151240_2_) |
static int |
roundUpToPowerOfTwo(int p_151236_0_) |
static float |
sin(float p_76126_0_) |
static float |
sqrt_double(double p_76133_0_) |
static float |
sqrt_float(float p_76129_0_) |
static boolean |
stringNullOrLengthZero(java.lang.String p_76139_0_) |
static int |
truncateDoubleToInt(double p_76140_0_) |
static double |
wrapAngleTo180_double(double p_76138_0_) |
static float |
wrapAngleTo180_float(float p_76142_0_) |
public static final float sin(float p_76126_0_)
public static final float cos(float p_76134_0_)
public static final float sqrt_float(float p_76129_0_)
public static final float sqrt_double(double p_76133_0_)
public static int floor_float(float p_76141_0_)
public static int truncateDoubleToInt(double p_76140_0_)
public static int floor_double(double p_76128_0_)
public static long floor_double_long(double p_76124_0_)
public static int func_154353_e(double p_154353_0_)
public static float abs(float p_76135_0_)
public static int abs_int(int p_76130_0_)
public static int ceiling_float_int(float p_76123_0_)
public static int ceiling_double_int(double p_76143_0_)
public static int clamp_int(int p_76125_0_, int p_76125_1_, int p_76125_2_)
public static float clamp_float(float p_76131_0_, float p_76131_1_, float p_76131_2_)
public static double clamp_double(double p_151237_0_, double p_151237_2_, double p_151237_4_)
public static double denormalizeClamp(double p_151238_0_, double p_151238_2_, double p_151238_4_)
public static double abs_max(double p_76132_0_, double p_76132_2_)
public static int bucketInt(int p_76137_0_, int p_76137_1_)
public static boolean stringNullOrLengthZero(java.lang.String p_76139_0_)
public static int getRandomIntegerInRange(java.util.Random p_76136_0_, int p_76136_1_, int p_76136_2_)
public static float randomFloatClamp(java.util.Random p_151240_0_, float p_151240_1_, float p_151240_2_)
public static double getRandomDoubleInRange(java.util.Random p_82716_0_, double p_82716_1_, double p_82716_3_)
public static double average(long[] p_76127_0_)
public static float wrapAngleTo180_float(float p_76142_0_)
public static double wrapAngleTo180_double(double p_76138_0_)
public static int parseIntWithDefault(java.lang.String p_82715_0_, int p_82715_1_)
public static int parseIntWithDefaultAndMax(java.lang.String p_82714_0_, int p_82714_1_, int p_82714_2_)
public static double parseDoubleWithDefault(java.lang.String p_82712_0_, double p_82712_1_)
public static double parseDoubleWithDefaultAndMax(java.lang.String p_82713_0_, double p_82713_1_, double p_82713_3_)
public static int roundUpToPowerOfTwo(int p_151236_0_)
public static int calculateLogBaseTwo(int p_151239_0_)
public static int func_154354_b(int p_154354_0_, int p_154354_1_)