public class MathHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
abs(int number) |
static int |
ceil(float floatNumber) |
static int |
clamp(int check,
int min,
int max) |
static float |
cos(float paramFloat) |
static long |
floor_double_long(double d) |
static int |
floor(double d0) |
static int |
getRandomNumberInRange(Random random,
int min,
int max)
Returns a random number between min and max, inclusive.
|
static double |
max(double first,
double second,
double third,
double fourth) |
static float |
sin(float paramFloat) |
static float |
sqrt(float paramFloat) |
public static float sqrt(float paramFloat)
public static float sin(float paramFloat)
public static float cos(float paramFloat)
public static int floor(double d0)
public static long floor_double_long(double d)
public static int abs(int number)
public static int getRandomNumberInRange(Random random, int min, int max)
random - The random number generator.min - The minimum value.max - The maximum value.public static double max(double first,
double second,
double third,
double fourth)
public static int ceil(float floatNumber)
public static int clamp(int check,
int min,
int max)
Copyright © 2017–2018 NukkitX. All rights reserved.