public class NukkitMath extends Object
| Constructor and Description |
|---|
NukkitMath() |
| Modifier and Type | Method and Description |
|---|---|
static int |
ceilDouble(double n) |
static int |
ceilFloat(float n) |
static short |
clampShort(short value,
short min,
short max) |
static int |
floorDouble(double n) |
static int |
floorFloat(float n) |
static double |
getDirection(double d0,
double d1) |
static int |
randomRange(NukkitRandom random) |
static int |
randomRange(NukkitRandom random,
int start) |
static int |
randomRange(NukkitRandom random,
int start,
int end) |
static double |
round(double d) |
static double |
round(double d,
int precision) |
public static int floorDouble(double n)
public static int ceilDouble(double n)
public static int floorFloat(float n)
public static int ceilFloat(float n)
public static int randomRange(NukkitRandom random)
public static int randomRange(NukkitRandom random, int start)
public static int randomRange(NukkitRandom random, int start, int end)
public static double round(double d)
public static double round(double d,
int precision)
public static short clampShort(short value,
short min,
short max)
public static double getDirection(double d0,
double d1)
Copyright © 2017–2020 NukkitX. All rights reserved.