|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.util.MathHelper
public class MathHelper
Constructor Summary | |
---|---|
MathHelper()
|
Method Summary | |
---|---|
static int |
abs_int(int par0)
|
static double |
abs_max(double par0,
double par2)
Maximum of the absolute value of two numbers. |
static float |
abs(float par0)
|
static double |
average(long[] par0ArrayOfLong)
|
static int |
bucketInt(int par0,
int par1)
|
static int |
ceiling_double_int(double par0)
|
static int |
ceiling_float_int(float par0)
|
static float |
clamp_float(float par0,
float par1,
float par2)
|
static int |
clamp_int(int par0,
int par1,
int par2)
Returns the value of the first parameter, clamped to be within the lower and upper limits given by the second and third parameters. |
static float |
cos(float par0)
cos looked up in the sin table with the appropriate offset |
static long |
floor_double_long(double par0)
Long version of floor_double |
static int |
floor_double(double par0)
Returns the greatest integer less than or equal to the double argument |
static int |
floor_float(float par0)
Returns the greatest integer less than or equal to the float argument |
static double |
func_82713_a(String par0Str,
double par1,
double par3)
|
static double |
getRandomDoubleInRange(Random par0Random,
double par1,
double par3)
|
static int |
getRandomIntegerInRange(Random par0Random,
int par1,
int par2)
|
static double |
parseDoubleWithDefault(String par0Str,
double par1)
parses the string as double or returns the second parameter if it fails. |
static int |
parseIntWithDefault(String par0Str,
int par1)
parses the string as integer or returns the second parameter if it fails |
static int |
parseIntWithDefaultAndMax(String par0Str,
int par1,
int par2)
parses the string as integer or returns the second parameter if it fails. |
static float |
sin(float par0)
sin looked up in a table |
static float |
sqrt_double(double par0)
|
static float |
sqrt_float(float par0)
|
static boolean |
stringNullOrLengthZero(String par0Str)
|
static int |
truncateDoubleToInt(double par0)
|
static double |
wrapAngleTo180_double(double par0)
the angle is reduced to an angle between -180 and +180 by mod, and a 360 check |
static float |
wrapAngleTo180_float(float par0)
the angle is reduced to an angle between -180 and +180 by mod, and a 360 check |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MathHelper()
Method Detail |
---|
public static final float sin(float par0)
public static final float cos(float par0)
public static final float sqrt_float(float par0)
public static final float sqrt_double(double par0)
public static int floor_float(float par0)
public static int truncateDoubleToInt(double par0)
public static int floor_double(double par0)
public static long floor_double_long(double par0)
public static float abs(float par0)
public static int abs_int(int par0)
public static int ceiling_float_int(float par0)
public static int ceiling_double_int(double par0)
public static int clamp_int(int par0, int par1, int par2)
public static float clamp_float(float par0, float par1, float par2)
public static double abs_max(double par0, double par2)
public static int bucketInt(int par0, int par1)
public static boolean stringNullOrLengthZero(String par0Str)
public static int getRandomIntegerInRange(Random par0Random, int par1, int par2)
public static double getRandomDoubleInRange(Random par0Random, double par1, double par3)
public static double average(long[] par0ArrayOfLong)
public static float wrapAngleTo180_float(float par0)
public static double wrapAngleTo180_double(double par0)
public static int parseIntWithDefault(String par0Str, int par1)
public static int parseIntWithDefaultAndMax(String par0Str, int par1, int par2)
public static double parseDoubleWithDefault(String par0Str, double par1)
public static double func_82713_a(String par0Str, double par1, double par3)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |