public class MathUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Random |
RANDOM |
Constructor and Description |
---|
MathUtil() |
Modifier and Type | Method and Description |
---|---|
static double |
getRandomNumberInRange(double min,
double max) |
static float |
getRandomNumberInRange(float min,
float max) |
static int |
getRandomNumberInRange(int min,
int max) |
static double |
getRandomNumberInRange(java.util.Random random,
double min,
double max) |
static float |
getRandomNumberInRange(java.util.Random random,
float min,
float max) |
static int |
getRandomNumberInRange(java.util.Random random,
int min,
int max) |
static net.minecraft.util.math.Vec3d |
rotateVectorAroundYCC(net.minecraft.util.math.Vec3d vec,
double angle) |
static net.minecraft.util.math.Vec3d |
rotateVectorCC(net.minecraft.util.math.Vec3d vec,
net.minecraft.util.math.Vec3d axis,
double angle) |
public static net.minecraft.util.math.Vec3d rotateVectorAroundYCC(net.minecraft.util.math.Vec3d vec, double angle)
public static net.minecraft.util.math.Vec3d rotateVectorCC(net.minecraft.util.math.Vec3d vec, net.minecraft.util.math.Vec3d axis, double angle)
public static int getRandomNumberInRange(int min, int max)
public static int getRandomNumberInRange(java.util.Random random, int min, int max)
public static float getRandomNumberInRange(float min, float max)
public static float getRandomNumberInRange(java.util.Random random, float min, float max)
public static double getRandomNumberInRange(double min, double max)
public static double getRandomNumberInRange(java.util.Random random, double min, double max)