net.minecraft.util

public class Mth

auo
net.minecraft.util.Mth
net.minecraft.class_3532
net.minecraft.util.math.MathHelper
net.minecraft.src.C_188_
net.minecraft.util.MathHelper

Field summary

Modifier and TypeField
private static final long
k
UUID_VERSION
field_29852
field_29852
f_144838_
private static final long
l
UUID_VERSION_TYPE_4
field_29853
HALF_PI_RADIANS_SINE_TABLE_INDEX
f_144839_
private static final long
m
UUID_VARIANT
field_29854
field_29854
f_144840_
private static final long
n
UUID_VARIANT_2
field_29855
field_29855
f_144841_
public static final float
a
PI
field_29844
PI
f_144830_
public static final float
b
HALF_PI
field_29845
HALF_PI
f_144831_
public static final float
c
TWO_PI
field_29846
TAU
f_144832_
public static final float
d
DEG_TO_RAD
field_29847
RADIANS_PER_DEGREE
f_144833_
public static final float
e
RAD_TO_DEG
field_29848
DEGREES_PER_RADIAN
f_144834_
public static final float
f
EPSILON
field_29849
EPSILON
f_144835_
public static final float
g
SQRT_OF_TWO
field_15724
SQUARE_ROOT_OF_TWO
f_13994_
private static final float
o
SIN_SCALE
field_29856
DEGREES_TO_SINE_TABLE_INDEX
f_144842_
public static final org.joml.Vector3f
h
Y_AXIS
field_46242
Y_AXIS
f_303648_
public static final org.joml.Vector3f
i
X_AXIS
field_46243
X_AXIS
f_302939_
public static final org.joml.Vector3f
j
Z_AXIS
field_46244
Z_AXIS
f_302844_
private static final float[]
p
SIN
field_15725
SINE_TABLE
f_13995_
private static final RandomSource
q
RANDOM
field_15726
RANDOM
f_13996_
private static final int[]
r
MULTIPLY_DE_BRUIJN_BIT_POSITION
field_15723
MULTIPLY_DE_BRUIJN_BIT_POSITION
f_13997_
private static final double
s
ONE_SIXTH
field_29857
ARCSINE_MACLAURIN_3
f_144843_
private static final int
t
FRAC_EXP
field_29858
field_29858
f_144844_
private static final int
u
LUT_SIZE
field_29859
ARCSINE_TABLE_LENGTH
f_144845_
private static final double
v
FRAC_BIAS
field_15728
ROUNDER_256THS
f_13998_
private static final double[]
w
ASIN_TAB
field_15727
ARCSINE_TABLE
f_13999_
private static final double[]
x
COS_TAB
field_15722
COSINE_OF_ARCSINE_TABLE
f_14000_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static float
a(float arg0)
sin(float arg0)
method_15374(float arg0)
sin(float value)
m_14031_(float p_14032_)
public static float
b(float arg0)
cos(float arg0)
method_15362(float arg0)
cos(float value)
m_14089_(float p_14090_)
public static float
c(float arg0)
sqrt(float arg0)
method_15355(float arg0)
sqrt(float value)
m_14116_(float p_14117_)
public static int
d(float arg0)
floor(float arg0)
method_15375(float arg0)
floor(float value)
m_14143_(float p_14144_)
public static int
a(double arg0)
floor(double arg0)
method_15357(double arg0)
floor(double value)
m_14107_(double p_14108_)
public static long
b(double arg0)
lfloor(double arg0)
method_15372(double arg0)
lfloor(double value)
m_14134_(double p_14135_)
public static float
e(float arg0)
abs(float arg0)
method_15379(float arg0)
abs(float value)
m_14154_(float p_14155_)
public static int
a(int arg0)
abs(int arg0)
method_15382(int arg0)
abs(int value)
m_14040_(int p_14041_)
public static int
f(float arg0)
ceil(float arg0)
method_15386(float arg0)
ceil(float value)
m_14167_(float p_14168_)
public static int
c(double arg0)
ceil(double arg0)
method_15384(double arg0)
ceil(double value)
m_14165_(double p_14166_)
public static int
a(int arg0, int arg1, int arg2)
clamp(int arg0, int arg1, int arg2)
method_15340(int arg0, int arg1, int arg2)
clamp(int value, int min, int max)
m_14045_(int p_14046_, int p_14047_, int p_14048_)
public static long
a(long arg0, long arg1, long arg2)
clamp(long arg0, long arg1, long arg2)
method_53062(long arg0, long arg1, long arg2)
clamp(long value, long min, long max)
m_295574_(long p_300696_, long p_299237_, long arg2)
public static float
a(float arg0, float arg1, float arg2)
clamp(float arg0, float arg1, float arg2)
method_15363(float arg0, float arg1, float arg2)
clamp(float value, float min, float max)
m_14036_(float p_14037_, float p_14038_, float p_14039_)
public static double
a(double arg0, double arg1, double arg2)
clamp(double arg0, double arg1, double arg2)
method_15350(double arg0, double arg1, double arg2)
clamp(double value, double min, double max)
m_14008_(double p_14009_, double p_14011_, double arg2)
public static double
b(double arg0, double arg1, double arg2)
clampedLerp(double arg0, double arg1, double arg2)
method_15390(double arg0, double arg1, double arg2)
clampedLerp(double start, double end, double delta)
m_14085_(double p_14086_, double p_14088_, double arg2)
public static float
b(float arg0, float arg1, float arg2)
clampedLerp(float arg0, float arg1, float arg2)
method_37166(float arg0, float arg1, float arg2)
clampedLerp(float start, float end, float delta)
m_144920_(float p_144921_, float p_144922_, float p_144923_)
public static double
a(double arg0, double arg1)
absMax(double arg0, double arg1)
method_15391(double arg0, double arg1)
absMax(double a, double b)
m_14005_(double p_14006_, double arg1)
public static int
a(int arg0, int arg1)
floorDiv(int arg0, int arg1)
method_48116(int arg0, int arg1)
floorDiv(int dividend, int divisor)
m_14042_(int p_14043_, int p_14044_)
public static int
a(auv arg0, int arg1, int arg2)
nextInt(RandomSource arg0, int arg1, int arg2)
method_15395(class_5819 arg0, int arg1, int arg2)
nextInt(Random random, int min, int max)
m_216271_(C_212974_ p_216272_, int p_216273_, int p_216274_)
public static float
a(auv arg0, float arg1, float arg2)
nextFloat(RandomSource arg0, float arg1, float arg2)
method_15344(class_5819 arg0, float arg1, float arg2)
nextFloat(Random random, float min, float max)
m_216267_(C_212974_ p_216268_, float p_216269_, float p_216270_)
public static double
a(auv arg0, double arg1, double arg2)
nextDouble(RandomSource arg0, double arg1, double arg2)
method_15366(class_5819 arg0, double arg1, double arg2)
nextDouble(Random random, double min, double max)
m_216263_(C_212974_ p_216264_, double p_216265_, double arg2)
public static boolean
a(float arg0, float arg1)
equal(float arg0, float arg1)
method_15347(float arg0, float arg1)
approximatelyEquals(float a, float b)
m_14033_(float p_14034_, float p_14035_)
public static boolean
b(double arg0, double arg1)
equal(double arg0, double arg1)
method_20390(double arg0, double arg1)
approximatelyEquals(double a, double b)
m_14082_(double p_14083_, double arg1)
public static int
b(int arg0, int arg1)
positiveModulo(int arg0, int arg1)
method_15387(int arg0, int arg1)
floorMod(int dividend, int divisor)
m_14100_(int p_14101_, int p_14102_)
public static float
b(float arg0, float arg1)
positiveModulo(float arg0, float arg1)
method_15341(float arg0, float arg1)
floorMod(float dividend, float divisor)
m_14091_(float p_14092_, float p_14093_)
public static double
c(double arg0, double arg1)
positiveModulo(double arg0, double arg1)
method_15367(double arg0, double arg1)
floorMod(double dividend, double divisor)
m_14109_(double p_14110_, double arg1)
public static boolean
c(int arg0, int arg1)
isMultipleOf(int arg0, int arg1)
method_48117(int arg0, int arg1)
isMultipleOf(int a, int b)
m_264612_(int p_265754_, int p_265543_)
public static int
b(int arg0)
wrapDegrees(int arg0)
method_15392(int arg0)
wrapDegrees(int degrees)
m_14098_(int p_14099_)
public static float
g(float arg0)
wrapDegrees(float arg0)
method_15393(float arg0)
wrapDegrees(float degrees)
m_14177_(float p_14178_)
public static double
d(double arg0)
wrapDegrees(double arg0)
method_15338(double arg0)
wrapDegrees(double degrees)
m_14175_(double p_14176_)
public static float
c(float arg0, float arg1)
degreesDifference(float arg0, float arg1)
method_15381(float arg0, float arg1)
subtractAngles(float start, float end)
m_14118_(float p_14119_, float p_14120_)
public static float
d(float arg0, float arg1)
degreesDifferenceAbs(float arg0, float arg1)
method_15356(float arg0, float arg1)
angleBetween(float first, float second)
m_14145_(float p_14146_, float p_14147_)
public static float
c(float arg0, float arg1, float arg2)
rotateIfNecessary(float arg0, float arg1, float arg2)
method_20306(float arg0, float arg1, float arg2)
clampAngle(float value, float mean, float delta)
m_14094_(float p_14095_, float p_14096_, float p_14097_)
public static float
d(float arg0, float arg1, float arg2)
approach(float arg0, float arg1, float arg2)
method_15348(float arg0, float arg1, float arg2)
stepTowards(float from, float to, float step)
m_14121_(float p_14122_, float p_14123_, float p_14124_)
public static float
e(float arg0, float arg1, float arg2)
approachDegrees(float arg0, float arg1, float arg2)
method_15388(float arg0, float arg1, float arg2)
stepUnwrappedAngleTowards(float from, float to, float step)
m_14148_(float p_14149_, float p_14150_, float p_14151_)
public static int
a(String arg0, int arg1)
getInt(String arg0, int arg1)
method_15343(String arg0, int arg1)
parseInt(String string, int fallback)
m_14059_(String p_14060_, int p_14061_)
public static int
c(int arg0)
smallestEncompassingPowerOfTwo(int arg0)
method_15339(int arg0)
smallestEncompassingPowerOfTwo(int value)
m_14125_(int p_14126_)
public static boolean
d(int arg0)
isPowerOfTwo(int arg0)
method_15352(int arg0)
isPowerOfTwo(int value)
m_14152_(int p_14153_)
public static int
e(int arg0)
ceillog2(int arg0)
method_15342(int arg0)
ceilLog2(int value)
m_14163_(int p_14164_)
public static int
f(int arg0)
log2(int arg0)
method_15351(int arg0)
floorLog2(int value)
m_14173_(int p_14174_)
public static int
f(float arg0, float arg1, float arg2)
color(float arg0, float arg1, float arg2)
method_15353(float arg0, float arg1, float arg2)
packRgb(float r, float g, float b)
m_14159_(float p_14160_, float p_14161_, float p_14162_)
public static float
h(float arg0)
frac(float arg0)
method_22450(float arg0)
fractionalPart(float value)
m_14187_(float p_14188_)
public static double
e(double arg0)
frac(double arg0)
method_15385(double arg0)
fractionalPart(double value)
m_14185_(double p_14186_)
public static long
a(jb arg0)
getSeed(Vec3i arg0)
method_15389(class_2382 arg0)
hashCode(Vec3i vec)
m_14057_(C_4713_ p_14058_)
public static long
b(int arg0, int arg1, int arg2)
getSeed(int arg0, int arg1, int arg2)
method_15371(int arg0, int arg1, int arg2)
hashCode(int x, int y, int z)
m_14130_(int p_14131_, int p_14132_, int p_14133_)
public static UUID
a(auv arg0)
createInsecureUUID(RandomSource arg0)
method_15378(class_5819 arg0)
randomUuid(Random random)
m_216261_(C_212974_ p_216262_)
public static UUID
a()
createInsecureUUID()
method_15394()
randomUuid()
m_14002_()
public static double
c(double arg0, double arg1, double arg2)
inverseLerp(double arg0, double arg1, double arg2)
method_15370(double arg0, double arg1, double arg2)
getLerpProgress(double value, double start, double end)
m_14112_(double p_14113_, double p_14115_, double arg2)
public static float
g(float arg0, float arg1, float arg2)
inverseLerp(float arg0, float arg1, float arg2)
method_37960(float arg0, float arg1, float arg2)
getLerpProgress(float value, float start, float end)
m_184655_(float p_184656_, float p_184657_, float p_184658_)
public static boolean
a(elt arg0, elt arg1, elo arg2)
rayIntersectsAABB(Vec3 arg0, Vec3 arg1, AABB arg2)
method_34945(class_243 arg0, class_243 arg1, class_238 arg2)
method_34945(Vec3d origin, Vec3d direction, Box box)
m_144888_(C_3046_ p_144889_, C_3046_ p_144890_, C_3040_ p_144891_)
public static double
d(double arg0, double arg1)
atan2(double arg0, double arg1)
method_15349(double arg0, double arg1)
atan2(double y, double x)
m_14136_(double p_14137_, double arg1)
public static float
i(float arg0)
invSqrt(float arg0)
method_48119(float arg0)
inverseSqrt(float x)
m_264536_(float p_265060_)
public static double
f(double arg0)
invSqrt(double arg0)
method_48118(double arg0)
inverseSqrt(double x)
m_264555_(double p_265088_)
public static double
g(double arg0)
fastInvSqrt(double arg0)
method_15345(double arg0)
fastInverseSqrt(double x)
m_14193_(double p_14194_)
public static float
j(float arg0)
fastInvCubeRoot(float arg0)
method_23278(float arg0)
fastInverseCbrt(float x)
m_14199_(float p_14200_)
public static int
h(float arg0, float arg1, float arg2)
hsvToRgb(float arg0, float arg1, float arg2)
method_15369(float arg0, float arg1, float arg2)
hsvToRgb(float hue, float saturation, float value)
m_14169_(float p_14170_, float p_14171_, float p_14172_)
public static int
g(int arg0)
murmurHash3Mixer(int arg0)
method_15354(int arg0)
idealHash(int value)
m_14183_(int p_14184_)
public static int
a(int arg0, int arg1, IntPredicate arg2)
binarySearch(int arg0, int arg1, IntPredicate arg2)
method_15360(int arg0, int arg1, IntPredicate arg2)
binarySearch(int min, int max, IntPredicate predicate)
m_14049_(int p_14050_, int p_14051_, IntPredicate p_14052_)
public static int
a(float arg0, int arg1, int arg2)
lerpInt(float arg0, int arg1, int arg2)
method_48781(float arg0, int arg1, int arg2)
lerp(float delta, int start, int end)
m_269140_(float p_270245_, int p_270597_, int p_270301_)
public static int
b(float arg0, int arg1, int arg2)
lerpDiscrete(float arg0, int arg1, int arg2)
method_53063(float arg0, int arg1, int arg2)
lerpPositive(float delta, int start, int end)
m_295919_(float p_298397_, int p_298459_, int p_300125_)
public static float
i(float arg0, float arg1, float arg2)
lerp(float arg0, float arg1, float arg2)
method_16439(float arg0, float arg1, float arg2)
lerp(float delta, float start, float end)
m_14179_(float p_14180_, float p_14181_, float p_14182_)
public static double
d(double arg0, double arg1, double arg2)
lerp(double arg0, double arg1, double arg2)
method_16436(double arg0, double arg1, double arg2)
lerp(double delta, double start, double end)
m_14139_(double p_14140_, double p_14142_, double arg2)
public static double
a(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
lerp2(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
method_16437(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
lerp2(double deltaX, double deltaY, double x0y0, double x1y0, double x0y1, double x1y1)
m_14012_(double p_14013_, double p_14015_, double p_14017_, double arg3, double arg4, double arg5)
public static double
a(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7, double arg8, double arg9, double arg10)
lerp3(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7, double arg8, double arg9, double arg10)
method_16438(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7, double arg8, double arg9, double arg10)
lerp3(double deltaX, double deltaY, double deltaZ, double x0y0z0, double x1y0z0, double x0y1z0, double x1y1z0, double x0y0z1, double x1y0z1, double x0y1z1, double x1y1z1)
m_14019_(double p_14020_, double p_14022_, double p_14024_, double p_14026_, double p_14028_, double p_14030_, double arg6, double arg7, double arg8, double arg9, double arg10)
public static float
a(float arg0, float arg1, float arg2, float arg3, float arg4)
catmullrom(float arg0, float arg1, float arg2, float arg3, float arg4)
method_41303(float arg0, float arg1, float arg2, float arg3, float arg4)
catmullRom(float delta, float p0, float p1, float p2, float p3)
m_216244_(float p_216245_, float p_216246_, float p_216247_, float p_216248_, float p_216249_)
public static double
h(double arg0)
smoothstep(double arg0)
method_16435(double arg0)
perlinFade(double value)
m_14197_(double p_14198_)
public static double
i(double arg0)
smoothstepDerivative(double arg0)
method_34956(double arg0)
perlinFadeDerivative(double value)
m_144946_(double p_144947_)
public static int
j(double arg0)
sign(double arg0)
method_17822(double arg0)
sign(double value)
m_14205_(double p_14206_)
public static float
j(float arg0, float arg1, float arg2)
rotLerp(float arg0, float arg1, float arg2)
method_17821(float arg0, float arg1, float arg2)
lerpAngleDegrees(float delta, float start, float end)
m_14189_(float p_14190_, float p_14191_, float p_14192_)
public static double
e(double arg0, double arg1, double arg2)
rotLerp(double arg0, double arg1, double arg2)
method_52468(double arg0, double arg1, double arg2)
lerpAngleDegrees(double delta, double start, double end)
m_293415_(double p_299352_, double p_299027_, double arg2)
public static float
e(float arg0, float arg1)
triangleWave(float arg0, float arg1)
method_24504(float arg0, float arg1)
wrap(float value, float maxDeviation)
m_14156_(float p_14157_, float p_14158_)
public static float
k(float arg0)
square(float arg0)
method_27285(float arg0)
square(float n)
m_14207_(float p_14208_)
public static double
k(double arg0)
square(double arg0)
method_33723(double arg0)
square(double n)
m_144952_(double p_144953_)
public static int
h(int arg0)
square(int arg0)
method_34954(int arg0)
square(int n)
m_144944_(int p_144945_)
public static long
a(long arg0)
square(long arg0)
method_38652(long arg0)
square(long n)
m_184643_(long p_184644_)
public static double
a(double arg0, double arg1, double arg2, double arg3, double arg4)
clampedMap(double arg0, double arg1, double arg2, double arg3, double arg4)
method_32854(double arg0, double arg1, double arg2, double arg3, double arg4)
clampedMap(double value, double oldStart, double oldEnd, double newStart, double newEnd)
m_144851_(double p_144852_, double p_144854_, double p_144856_, double arg3, double arg4)
public static float
b(float arg0, float arg1, float arg2, float arg3, float arg4)
clampedMap(float arg0, float arg1, float arg2, float arg3, float arg4)
method_37958(float arg0, float arg1, float arg2, float arg3, float arg4)
clampedMap(float value, float oldStart, float oldEnd, float newStart, float newEnd)
m_184631_(float p_184632_, float p_184633_, float p_184634_, float p_184635_, float p_184636_)
public static double
b(double arg0, double arg1, double arg2, double arg3, double arg4)
map(double arg0, double arg1, double arg2, double arg3, double arg4)
method_33722(double arg0, double arg1, double arg2, double arg3, double arg4)
map(double value, double oldStart, double oldEnd, double newStart, double newEnd)
m_144914_(double p_144915_, double p_144917_, double p_144919_, double arg3, double arg4)
public static float
c(float arg0, float arg1, float arg2, float arg3, float arg4)
map(float arg0, float arg1, float arg2, float arg3, float arg4)
method_37959(float arg0, float arg1, float arg2, float arg3, float arg4)
map(float value, float oldStart, float oldEnd, float newStart, float newEnd)
m_184637_(float p_184638_, float p_184639_, float p_184640_, float p_184641_, float p_184642_)
public static double
l(double arg0)
wobble(double arg0)
method_34957(double arg0)
method_34957(double arg0)
m_144954_(double p_144955_)
public static int
d(int arg0, int arg1)
roundToward(int arg0, int arg1)
method_28139(int arg0, int arg1)
roundUpToMultiple(int value, int divisor)
m_144941_(int p_144942_, int p_144943_)
public static int
e(int arg0, int arg1)
positiveCeilDiv(int arg0, int arg1)
method_38788(int arg0, int arg1)
ceilDiv(int a, int b)
m_184652_(int p_184653_, int p_184654_)
public static int
b(auv arg0, int arg1, int arg2)
randomBetweenInclusive(RandomSource arg0, int arg1, int arg2)
method_32751(class_5819 arg0, int arg1, int arg2)
nextBetween(Random random, int min, int max)
m_216287_(C_212974_ p_216288_, int p_216289_, int p_216290_)
public static float
b(auv arg0, float arg1, float arg2)
randomBetween(RandomSource arg0, float arg1, float arg2)
method_32750(class_5819 arg0, float arg1, float arg2)
nextBetween(Random random, float min, float max)
m_216283_(C_212974_ p_216284_, float p_216285_, float p_216286_)
public static float
c(auv arg0, float arg1, float arg2)
normal(RandomSource arg0, float arg1, float arg2)
method_32855(class_5819 arg0, float arg1, float arg2)
nextGaussian(Random random, float mean, float deviation)
m_216291_(C_212974_ p_216292_, float p_216293_, float p_216294_)
public static double
e(double arg0, double arg1)
lengthSquared(double arg0, double arg1)
method_41189(double arg0, double arg1)
squaredHypot(double a, double b)
m_211589_(double p_211590_, double arg1)
public static double
f(double arg0, double arg1)
length(double arg0, double arg1)
method_39241(double arg0, double arg1)
hypot(double a, double b)
m_184645_(double p_184646_, double arg1)
public static double
f(double arg0, double arg1, double arg2)
lengthSquared(double arg0, double arg1, double arg2)
method_41190(double arg0, double arg1, double arg2)
squaredMagnitude(double a, double b, double c)
m_211592_(double p_211593_, double p_211595_, double arg2)
public static double
g(double arg0, double arg1, double arg2)
length(double arg0, double arg1, double arg2)
method_33825(double arg0, double arg1, double arg2)
magnitude(double a, double b, double c)
m_184648_(double p_184649_, double p_184651_, double arg2)
public static int
a(double arg0, int arg1)
quantize(double arg0, int arg1)
method_38961(double arg0, int arg1)
roundDownToMultiple(double a, int b)
m_184628_(double p_184629_, int arg1)
public static IntStream
c(int arg0, int arg1, int arg2)
outFromOrigin(int arg0, int arg1, int arg2)
method_42120(int arg0, int arg1, int arg2)
stream(int seed, int lowerBound, int upperBound)
m_216295_(int p_216296_, int p_216297_, int p_216298_)
public static IntStream
a(int arg0, int arg1, int arg2, int arg3)
outFromOrigin(int arg0, int arg1, int arg2, int arg3)
method_42117(int arg0, int arg1, int arg2, int arg3)
stream(int seed, int lowerBound, int upperBound, int steps)
m_216250_(int p_216251_, int p_216252_, int p_216253_, int p_216254_)
public static org.joml.Quaternionf
a(org.joml.Vector3f arg0, org.joml.Quaternionf arg1, org.joml.Quaternionf arg2)
rotationAroundAxis(org.joml.Vector3f arg0, org.joml.Quaternionf arg1, org.joml.Quaternionf arg2)
method_53948(org.joml.Vector3f arg0, org.joml.Quaternionf arg1, org.joml.Quaternionf arg2)
rotateAround(org.joml.Vector3f axis, org.joml.Quaternionf rotation, org.joml.Quaternionf result)
m_305706_(org.joml.Vector3f p_311556_, org.joml.Quaternionf p_311192_, org.joml.Quaternionf p_310462_)