Package net.minecraft.util.math
Class MathHelper
java.lang.Object
net.minecraft.util.math.MathHelper
- Mappings:
Namespace Name official ahaintermediary net/minecraft/class_3532named net/minecraft/util/math/MathHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static double[]private static double[]static floatstatic floatstatic floatstatic floatstatic floatstatic floatprivate static intprivate static floatprivate static longprivate static longprivate static longprivate static longprivate static floatprivate static doubleprivate static intprivate static intprivate static int[]private static Randomprivate static float[]private static doublestatic float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatabs(float value)static intabs(int value)static doubleabsMax(double a, double b)static floatangleBetween(float first, float second)static booleanapproximatelyEquals(double a, double b)static booleanapproximatelyEquals(float a, float b)static doubleatan2(double y, double x)static doubleaverage(long[] array)static intbinarySearch(int start, int end, IntPredicate leftPredicate)static intceil(double value)static intceil(float value)static byteclamp(byte value, byte min, byte max)static doubleclamp(double value, double min, double max)static floatclamp(float value, float min, float max)static intclamp(int value, int min, int max)static longclamp(long value, long min, long max)static doubleclampedLerp(double start, double end, double delta)static doubleclampedLerpFromProgress(double lerpValue, double lerpStart, double lerpEnd, double start, double end)static floatcos(float value)static intfastFloor(double value)static floatfastInverseCbrt(float x)static doublefastInverseSqrt(double x)static floatfastInverseSqrt(float x)static intfloor(double value)static intfloor(float value)static intfloorDiv(int dividend, int divisor)static doublefloorMod(double dividend, double divisor)static floatfloorMod(float dividend, float divisor)static intfloorMod(int dividend, int divisor)static doublefractionalPart(double value)static floatfractionalPart(float value)static floatfwrapDegrees(double degrees)Deprecated.static double[]getCumulativeDistribution(double[] values)static doublegetLerpProgress(double value, double start, double end)Gets the fraction of the way thatvalueis betweenstartandend.static longhashCode(int x, int y, int z)static longstatic inthsvToRgb(float hue, float saturation, float value)static intidealHash(int value)static booleanisPowerOfTwo(int value)static doublelerp(double delta, double start, double end)static floatlerp(float delta, float start, float end)static doublelerp2(double deltaX, double deltaY, double x0y0, double x1y0, double x0y1, double x1y1)A two-dimensional lerp between values on the 4 corners of the unit square.static doublelerp3(double deltaX, double deltaY, double deltaZ, double x0y0z0, double x1y0z0, double x0y1z0, double x1y1z0, double x0y0z1, double x1y0z1, double x0y1z1, double x1y1z1)A three-dimensional lerp between values on the 8 corners of the unit cube.static floatlerpAngle(float start, float end, float delta)Deprecated.static floatlerpAngleDegrees(float delta, float start, float end)static doublelerpFromProgress(double lerpValue, double lerpStart, double lerpEnd, double start, double end)static longlfloor(double value)static intlog2(int value)static intlog2DeBruijn(int value)static doublemagnitude(int x, double y, int z)static double[]method_34940(double double2, double double3, double double4, double double5, double double6, double double7, int int2, int int3)static double[]method_34941(double double2, double double3, double double4, int int2, int int3)static double[]method_34942(double double2, double double3, int int2, int int3)static intmethod_34943(int int2, float float2, float float3, float float4)static longmethod_34944(long long2)static booleanmethod_34945(Vec3d vec3d, Vec3d vec3d2, Box box)static Vec3dmethod_34946(Vec3d vec3d, Vec3d vec3d2, Vec3d vec3d3, Vec3d vec3d4, double double2)static doublemethod_34948(String string, double double2, double double3)static intmethod_34949(String string, int int2, int int3)static intmethod_34950(Random random, double[] double2)static intmethod_34952(int int2, int int3)static intmethod_34953(double double2)static floatmethod_34955(float float2, float float3, float float4)static doublemethod_34957(double double2)static floatmethod_37166(float float2, float float3, float float4)static floatnextBetween(Random random, float min, float max)static intnextBetween(Random random, int min, int max)static doublenextDouble(Random random, double min, double max)static floatstatic floatnextGaussian(Random random, float mean, float deviation)static intstatic intpackRgb(float r, float g, float b)static intpackRgb(int r, int g, int b)static doubleparseDouble(String string, double fallback)static intstatic doubleperlinFade(double value)static doubleperlinFadeDerivative(double value)static UUIDstatic UUIDrandomUuid(Random random)static introundUpToMultiple(int value, int divisor)Returns a value farther than or as far asvaluefrom zero that is a multiple ofdivisor.static intsign(double value)static floatsin(float value)static intsmallestEncompassingPowerOfTwo(int value)static floatsqrt(float value)static doublesquare(double n)static floatsquare(float n)static intsquare(int n)static floatstepAngleTowards(float from, float to, float step)Steps fromfromdegrees towardstodegrees, changing the value by at moststepdegrees.static floatstepTowards(float from, float to, float step)Steps fromfromtowardsto, changing the value by at moststep.static floatstepUnwrappedAngleTowards(float from, float to, float step)Steps fromfromdegrees towardstodegrees, changing the value by at moststepdegrees.static floatsubtractAngles(float start, float end)static floatwrap(float value, float maxDeviation)static doublewrapDegrees(double degrees)Wraps an angle in degrees to the interval[-180, 180).static floatwrapDegrees(float degrees)Wraps an angle in degrees to the interval[-180, 180).static intwrapDegrees(int degrees)Wraps an angle in degrees to the interval[-180, 180).
-
Field Details
-
field_29850
private static final int field_29850- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official hLaha;h:Iintermediary field_29850Lnet/minecraft/class_3532;field_29850:Inamed field_29850Lnet/minecraft/util/math/MathHelper;field_29850:I
-
field_29851
private static final float field_29851- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official iLaha;i:Fintermediary field_29851Lnet/minecraft/class_3532;field_29851:Fnamed field_29851Lnet/minecraft/util/math/MathHelper;field_29851:F
-
field_29852
private static final long field_29852- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official jLaha;j:Jintermediary field_29852Lnet/minecraft/class_3532;field_29852:Jnamed field_29852Lnet/minecraft/util/math/MathHelper;field_29852:J
-
field_29853
private static final long field_29853- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official kLaha;k:Jintermediary field_29853Lnet/minecraft/class_3532;field_29853:Jnamed field_29853Lnet/minecraft/util/math/MathHelper;field_29853:J
-
field_29854
private static final long field_29854- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official lLaha;l:Jintermediary field_29854Lnet/minecraft/class_3532;field_29854:Jnamed field_29854Lnet/minecraft/util/math/MathHelper;field_29854:J
-
field_29855
private static final long field_29855- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official mLaha;m:Jintermediary field_29855Lnet/minecraft/class_3532;field_29855:Jnamed field_29855Lnet/minecraft/util/math/MathHelper;field_29855:J
-
field_29844
public static final float field_29844- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLaha;a:Fintermediary field_29844Lnet/minecraft/class_3532;field_29844:Fnamed field_29844Lnet/minecraft/util/math/MathHelper;field_29844:F
-
field_29845
public static final float field_29845- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official bLaha;b:Fintermediary field_29845Lnet/minecraft/class_3532;field_29845:Fnamed field_29845Lnet/minecraft/util/math/MathHelper;field_29845:F
-
field_29846
public static final float field_29846- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official cLaha;c:Fintermediary field_29846Lnet/minecraft/class_3532;field_29846:Fnamed field_29846Lnet/minecraft/util/math/MathHelper;field_29846:F
-
field_29847
public static final float field_29847- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official dLaha;d:Fintermediary field_29847Lnet/minecraft/class_3532;field_29847:Fnamed field_29847Lnet/minecraft/util/math/MathHelper;field_29847:F
-
field_29848
public static final float field_29848- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official eLaha;e:Fintermediary field_29848Lnet/minecraft/class_3532;field_29848:Fnamed field_29848Lnet/minecraft/util/math/MathHelper;field_29848:F
-
field_29849
public static final float field_29849- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official fLaha;f:Fintermediary field_29849Lnet/minecraft/class_3532;field_29849:Fnamed field_29849Lnet/minecraft/util/math/MathHelper;field_29849:F
-
SQUARE_ROOT_OF_TWO
public static final float SQUARE_ROOT_OF_TWO- Mappings:
Namespace Name Mixin selector official gLaha;g:Fintermediary field_15724Lnet/minecraft/class_3532;field_15724:Fnamed SQUARE_ROOT_OF_TWOLnet/minecraft/util/math/MathHelper;SQUARE_ROOT_OF_TWO:F
-
field_29856
private static final float field_29856- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official nLaha;n:Fintermediary field_29856Lnet/minecraft/class_3532;field_29856:Fnamed field_29856Lnet/minecraft/util/math/MathHelper;field_29856:F
-
SINE_TABLE
private static final float[] SINE_TABLE- Mappings:
Namespace Name Mixin selector official oLaha;o:[Fintermediary field_15725Lnet/minecraft/class_3532;field_15725:[Fnamed SINE_TABLELnet/minecraft/util/math/MathHelper;SINE_TABLE:[F
-
RANDOM
- Mappings:
Namespace Name Mixin selector official pLaha;p:Ljava/util/Random;intermediary field_15726Lnet/minecraft/class_3532;field_15726:Ljava/util/Random;named RANDOMLnet/minecraft/util/math/MathHelper;RANDOM:Ljava/util/Random;
-
MULTIPLY_DE_BRUIJN_BIT_POSITION
private static final int[] MULTIPLY_DE_BRUIJN_BIT_POSITION- Mappings:
Namespace Name Mixin selector official qLaha;q:[Iintermediary field_15723Lnet/minecraft/class_3532;field_15723:[Inamed MULTIPLY_DE_BRUIJN_BIT_POSITIONLnet/minecraft/util/math/MathHelper;MULTIPLY_DE_BRUIJN_BIT_POSITION:[I
-
field_29857
private static final double field_29857- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official rLaha;r:Dintermediary field_29857Lnet/minecraft/class_3532;field_29857:Dnamed field_29857Lnet/minecraft/util/math/MathHelper;field_29857:D
-
field_29858
private static final int field_29858- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official sLaha;s:Iintermediary field_29858Lnet/minecraft/class_3532;field_29858:Inamed field_29858Lnet/minecraft/util/math/MathHelper;field_29858:I
-
field_29859
private static final int field_29859- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official tLaha;t:Iintermediary field_29859Lnet/minecraft/class_3532;field_29859:Inamed field_29859Lnet/minecraft/util/math/MathHelper;field_29859:I
-
SMALLEST_FRACTION_FREE_DOUBLE
private static final double SMALLEST_FRACTION_FREE_DOUBLE- Mappings:
Namespace Name Mixin selector official uLaha;u:Dintermediary field_15728Lnet/minecraft/class_3532;field_15728:Dnamed SMALLEST_FRACTION_FREE_DOUBLELnet/minecraft/util/math/MathHelper;SMALLEST_FRACTION_FREE_DOUBLE:D
-
ARCSINE_TABLE
private static final double[] ARCSINE_TABLE- Mappings:
Namespace Name Mixin selector official vLaha;v:[Dintermediary field_15727Lnet/minecraft/class_3532;field_15727:[Dnamed ARCSINE_TABLELnet/minecraft/util/math/MathHelper;ARCSINE_TABLE:[D
-
COSINE_TABLE
private static final double[] COSINE_TABLE- Mappings:
Namespace Name Mixin selector official wLaha;w:[Dintermediary field_15722Lnet/minecraft/class_3532;field_15722:[Dnamed COSINE_TABLELnet/minecraft/util/math/MathHelper;COSINE_TABLE:[D
-
-
Constructor Details
-
MathHelper
public MathHelper()
-
-
Method Details
-
sin
public static float sin(float value)- Mappings:
Namespace Name Mixin selector official aLaha;a(F)Fintermediary method_15374Lnet/minecraft/class_3532;method_15374(F)Fnamed sinLnet/minecraft/util/math/MathHelper;sin(F)F
-
cos
public static float cos(float value)- Mappings:
Namespace Name Mixin selector official bLaha;b(F)Fintermediary method_15362Lnet/minecraft/class_3532;method_15362(F)Fnamed cosLnet/minecraft/util/math/MathHelper;cos(F)F
-
sqrt
public static float sqrt(float value)- Mappings:
Namespace Name Mixin selector official cLaha;c(F)Fintermediary method_15355Lnet/minecraft/class_3532;method_15355(F)Fnamed sqrtLnet/minecraft/util/math/MathHelper;sqrt(F)F
-
floor
public static int floor(float value)- Mappings:
Namespace Name Mixin selector official dLaha;d(F)Iintermediary method_15375Lnet/minecraft/class_3532;method_15375(F)Inamed floorLnet/minecraft/util/math/MathHelper;floor(F)I
-
fastFloor
public static int fastFloor(double value)- Mappings:
Namespace Name Mixin selector official aLaha;a(D)Iintermediary method_15365Lnet/minecraft/class_3532;method_15365(D)Inamed fastFloorLnet/minecraft/util/math/MathHelper;fastFloor(D)I
-
floor
public static int floor(double value)- Mappings:
Namespace Name Mixin selector official bLaha;b(D)Iintermediary method_15357Lnet/minecraft/class_3532;method_15357(D)Inamed floorLnet/minecraft/util/math/MathHelper;floor(D)I
-
lfloor
public static long lfloor(double value)- Mappings:
Namespace Name Mixin selector official cLaha;c(D)Jintermediary method_15372Lnet/minecraft/class_3532;method_15372(D)Jnamed lfloorLnet/minecraft/util/math/MathHelper;lfloor(D)J
-
method_34953
public static int method_34953(double double2)- Mappings:
Namespace Name Mixin selector official dLaha;d(D)Iintermediary method_34953Lnet/minecraft/class_3532;method_34953(D)Inamed method_34953Lnet/minecraft/util/math/MathHelper;method_34953(D)I
-
abs
public static float abs(float value)- Mappings:
Namespace Name Mixin selector official eLaha;e(F)Fintermediary method_15379Lnet/minecraft/class_3532;method_15379(F)Fnamed absLnet/minecraft/util/math/MathHelper;abs(F)F
-
abs
public static int abs(int value)- Mappings:
Namespace Name Mixin selector official aLaha;a(I)Iintermediary method_15382Lnet/minecraft/class_3532;method_15382(I)Inamed absLnet/minecraft/util/math/MathHelper;abs(I)I
-
ceil
public static int ceil(float value)- Mappings:
Namespace Name Mixin selector official fLaha;f(F)Iintermediary method_15386Lnet/minecraft/class_3532;method_15386(F)Inamed ceilLnet/minecraft/util/math/MathHelper;ceil(F)I
-
ceil
public static int ceil(double value)- Mappings:
Namespace Name Mixin selector official eLaha;e(D)Iintermediary method_15384Lnet/minecraft/class_3532;method_15384(D)Inamed ceilLnet/minecraft/util/math/MathHelper;ceil(D)I
-
clamp
public static byte clamp(byte value, byte min, byte max)- Mappings:
Namespace Name Mixin selector official aLaha;a(BBB)Bintermediary method_34939Lnet/minecraft/class_3532;method_34939(BBB)Bnamed clampLnet/minecraft/util/math/MathHelper;clamp(BBB)B
-
clamp
public static int clamp(int value, int min, int max)- Mappings:
Namespace Name Mixin selector official aLaha;a(III)Iintermediary method_15340Lnet/minecraft/class_3532;method_15340(III)Inamed clampLnet/minecraft/util/math/MathHelper;clamp(III)I
-
clamp
public static long clamp(long value, long min, long max)- Mappings:
Namespace Name Mixin selector official aLaha;a(JJJ)Jintermediary method_24156Lnet/minecraft/class_3532;method_24156(JJJ)Jnamed clampLnet/minecraft/util/math/MathHelper;clamp(JJJ)J
-
clamp
public static float clamp(float value, float min, float max)- Mappings:
Namespace Name Mixin selector official aLaha;a(FFF)Fintermediary method_15363Lnet/minecraft/class_3532;method_15363(FFF)Fnamed clampLnet/minecraft/util/math/MathHelper;clamp(FFF)F
-
clamp
public static double clamp(double value, double min, double max)- Mappings:
Namespace Name Mixin selector official aLaha;a(DDD)Dintermediary method_15350Lnet/minecraft/class_3532;method_15350(DDD)Dnamed clampLnet/minecraft/util/math/MathHelper;clamp(DDD)D
-
clampedLerp
public static double clampedLerp(double start, double end, double delta)- Mappings:
Namespace Name Mixin selector official bLaha;b(DDD)Dintermediary method_15390Lnet/minecraft/class_3532;method_15390(DDD)Dnamed clampedLerpLnet/minecraft/util/math/MathHelper;clampedLerp(DDD)D
-
method_37166
public static float method_37166(float float2, float float3, float float4)- Mappings:
Namespace Name Mixin selector official bLaha;b(FFF)Fintermediary method_37166Lnet/minecraft/class_3532;method_37166(FFF)Fnamed method_37166Lnet/minecraft/util/math/MathHelper;method_37166(FFF)F
-
absMax
public static double absMax(double a, double b)- Mappings:
Namespace Name Mixin selector official aLaha;a(DD)Dintermediary method_15391Lnet/minecraft/class_3532;method_15391(DD)Dnamed absMaxLnet/minecraft/util/math/MathHelper;absMax(DD)D
-
floorDiv
public static int floorDiv(int dividend, int divisor)- Mappings:
Namespace Name Mixin selector official aLaha;a(II)Iintermediary method_15346Lnet/minecraft/class_3532;method_15346(II)Inamed floorDivLnet/minecraft/util/math/MathHelper;floorDiv(II)I
-
nextInt
- Mappings:
Namespace Name Mixin selector official aLaha;a(Ljava/util/Random;II)Iintermediary method_15395Lnet/minecraft/class_3532;method_15395(Ljava/util/Random;II)Inamed nextIntLnet/minecraft/util/math/MathHelper;nextInt(Ljava/util/Random;II)I
-
nextFloat
- Mappings:
Namespace Name Mixin selector official aLaha;a(Ljava/util/Random;FF)Fintermediary method_15344Lnet/minecraft/class_3532;method_15344(Ljava/util/Random;FF)Fnamed nextFloatLnet/minecraft/util/math/MathHelper;nextFloat(Ljava/util/Random;FF)F
-
nextDouble
- Mappings:
Namespace Name Mixin selector official aLaha;a(Ljava/util/Random;DD)Dintermediary method_15366Lnet/minecraft/class_3532;method_15366(Ljava/util/Random;DD)Dnamed nextDoubleLnet/minecraft/util/math/MathHelper;nextDouble(Ljava/util/Random;DD)D
-
average
public static double average(long[] array)- Mappings:
Namespace Name Mixin selector official aLaha;a([J)Dintermediary method_15373Lnet/minecraft/class_3532;method_15373([J)Dnamed averageLnet/minecraft/util/math/MathHelper;average([J)D
-
approximatelyEquals
public static boolean approximatelyEquals(float a, float b)- Mappings:
Namespace Name Mixin selector official aLaha;a(FF)Zintermediary method_15347Lnet/minecraft/class_3532;method_15347(FF)Znamed approximatelyEqualsLnet/minecraft/util/math/MathHelper;approximatelyEquals(FF)Z
-
approximatelyEquals
public static boolean approximatelyEquals(double a, double b)- Mappings:
Namespace Name Mixin selector official bLaha;b(DD)Zintermediary method_20390Lnet/minecraft/class_3532;method_20390(DD)Znamed approximatelyEqualsLnet/minecraft/util/math/MathHelper;approximatelyEquals(DD)Z
-
floorMod
public static int floorMod(int dividend, int divisor)- Mappings:
Namespace Name Mixin selector official bLaha;b(II)Iintermediary method_15387Lnet/minecraft/class_3532;method_15387(II)Inamed floorModLnet/minecraft/util/math/MathHelper;floorMod(II)I
-
floorMod
public static float floorMod(float dividend, float divisor)- Mappings:
Namespace Name Mixin selector official bLaha;b(FF)Fintermediary method_15341Lnet/minecraft/class_3532;method_15341(FF)Fnamed floorModLnet/minecraft/util/math/MathHelper;floorMod(FF)F
-
floorMod
public static double floorMod(double dividend, double divisor)- Mappings:
Namespace Name Mixin selector official cLaha;c(DD)Dintermediary method_15367Lnet/minecraft/class_3532;method_15367(DD)Dnamed floorModLnet/minecraft/util/math/MathHelper;floorMod(DD)D
-
wrapDegrees
public static int wrapDegrees(int degrees)Wraps an angle in degrees to the interval[-180, 180).- Mappings:
Namespace Name Mixin selector official bLaha;b(I)Iintermediary method_15392Lnet/minecraft/class_3532;method_15392(I)Inamed wrapDegreesLnet/minecraft/util/math/MathHelper;wrapDegrees(I)I
-
wrapDegrees
public static float wrapDegrees(float degrees)Wraps an angle in degrees to the interval[-180, 180).- Mappings:
Namespace Name Mixin selector official gLaha;g(F)Fintermediary method_15393Lnet/minecraft/class_3532;method_15393(F)Fnamed wrapDegreesLnet/minecraft/util/math/MathHelper;wrapDegrees(F)F
-
wrapDegrees
public static double wrapDegrees(double degrees)Wraps an angle in degrees to the interval[-180, 180).- Mappings:
Namespace Name Mixin selector official fLaha;f(D)Dintermediary method_15338Lnet/minecraft/class_3532;method_15338(D)Dnamed wrapDegreesLnet/minecraft/util/math/MathHelper;wrapDegrees(D)D
-
subtractAngles
public static float subtractAngles(float start, float end)- Mappings:
Namespace Name Mixin selector official cLaha;c(FF)Fintermediary method_15381Lnet/minecraft/class_3532;method_15381(FF)Fnamed subtractAnglesLnet/minecraft/util/math/MathHelper;subtractAngles(FF)F
-
angleBetween
public static float angleBetween(float first, float second)- Mappings:
Namespace Name Mixin selector official dLaha;d(FF)Fintermediary method_15356Lnet/minecraft/class_3532;method_15356(FF)Fnamed angleBetweenLnet/minecraft/util/math/MathHelper;angleBetween(FF)F
-
stepAngleTowards
public static float stepAngleTowards(float from, float to, float step)Steps fromfromdegrees towardstodegrees, changing the value by at moststepdegrees.- Mappings:
Namespace Name Mixin selector official cLaha;c(FFF)Fintermediary method_20306Lnet/minecraft/class_3532;method_20306(FFF)Fnamed stepAngleTowardsLnet/minecraft/util/math/MathHelper;stepAngleTowards(FFF)F
-
stepTowards
public static float stepTowards(float from, float to, float step)Steps fromfromtowardsto, changing the value by at moststep.- Mappings:
Namespace Name Mixin selector official dLaha;d(FFF)Fintermediary method_15348Lnet/minecraft/class_3532;method_15348(FFF)Fnamed stepTowardsLnet/minecraft/util/math/MathHelper;stepTowards(FFF)F
-
stepUnwrappedAngleTowards
public static float stepUnwrappedAngleTowards(float from, float to, float step)Steps fromfromdegrees towardstodegrees, changing the value by at moststepdegrees.This method does not wrap the resulting angle, so
stepAngleTowards(float, float, float)should be used in preference.- Mappings:
Namespace Name Mixin selector official eLaha;e(FFF)Fintermediary method_15388Lnet/minecraft/class_3532;method_15388(FFF)Fnamed stepUnwrappedAngleTowardsLnet/minecraft/util/math/MathHelper;stepUnwrappedAngleTowards(FFF)F
-
parseInt
- Mappings:
Namespace Name Mixin selector official aLaha;a(Ljava/lang/String;I)Iintermediary method_15343Lnet/minecraft/class_3532;method_15343(Ljava/lang/String;I)Inamed parseIntLnet/minecraft/util/math/MathHelper;parseInt(Ljava/lang/String;I)I
-
method_34949
- Mappings:
Namespace Name Mixin selector official aLaha;a(Ljava/lang/String;II)Iintermediary method_34949Lnet/minecraft/class_3532;method_34949(Ljava/lang/String;II)Inamed method_34949Lnet/minecraft/util/math/MathHelper;method_34949(Ljava/lang/String;II)I
-
parseDouble
- Mappings:
Namespace Name Mixin selector official aLaha;a(Ljava/lang/String;D)Dintermediary method_34947Lnet/minecraft/class_3532;method_34947(Ljava/lang/String;D)Dnamed parseDoubleLnet/minecraft/util/math/MathHelper;parseDouble(Ljava/lang/String;D)D
-
method_34948
- Mappings:
Namespace Name Mixin selector official aLaha;a(Ljava/lang/String;DD)Dintermediary method_34948Lnet/minecraft/class_3532;method_34948(Ljava/lang/String;DD)Dnamed method_34948Lnet/minecraft/util/math/MathHelper;method_34948(Ljava/lang/String;DD)D
-
smallestEncompassingPowerOfTwo
public static int smallestEncompassingPowerOfTwo(int value)- Mappings:
Namespace Name Mixin selector official cLaha;c(I)Iintermediary method_15339Lnet/minecraft/class_3532;method_15339(I)Inamed smallestEncompassingPowerOfTwoLnet/minecraft/util/math/MathHelper;smallestEncompassingPowerOfTwo(I)I
-
isPowerOfTwo
public static boolean isPowerOfTwo(int value)- Mappings:
Namespace Name Mixin selector official dLaha;d(I)Zintermediary method_15352Lnet/minecraft/class_3532;method_15352(I)Znamed isPowerOfTwoLnet/minecraft/util/math/MathHelper;isPowerOfTwo(I)Z
-
log2DeBruijn
public static int log2DeBruijn(int value)- Mappings:
Namespace Name Mixin selector official eLaha;e(I)Iintermediary method_15342Lnet/minecraft/class_3532;method_15342(I)Inamed log2DeBruijnLnet/minecraft/util/math/MathHelper;log2DeBruijn(I)I
-
log2
public static int log2(int value)- Mappings:
Namespace Name Mixin selector official fLaha;f(I)Iintermediary method_15351Lnet/minecraft/class_3532;method_15351(I)Inamed log2Lnet/minecraft/util/math/MathHelper;log2(I)I
-
packRgb
public static int packRgb(float r, float g, float b)- Mappings:
Namespace Name Mixin selector official fLaha;f(FFF)Iintermediary method_15353Lnet/minecraft/class_3532;method_15353(FFF)Inamed packRgbLnet/minecraft/util/math/MathHelper;packRgb(FFF)I
-
packRgb
public static int packRgb(int r, int g, int b)- Mappings:
Namespace Name Mixin selector official bLaha;b(III)Iintermediary method_15383Lnet/minecraft/class_3532;method_15383(III)Inamed packRgbLnet/minecraft/util/math/MathHelper;packRgb(III)I
-
method_34952
public static int method_34952(int int2, int int3)- Mappings:
Namespace Name Mixin selector official cLaha;c(II)Iintermediary method_34952Lnet/minecraft/class_3532;method_34952(II)Inamed method_34952Lnet/minecraft/util/math/MathHelper;method_34952(II)I
-
method_34943
public static int method_34943(int int2, float float2, float float3, float float4)- Mappings:
Namespace Name Mixin selector official aLaha;a(IFFF)Iintermediary method_34943Lnet/minecraft/class_3532;method_34943(IFFF)Inamed method_34943Lnet/minecraft/util/math/MathHelper;method_34943(IFFF)I
-
fractionalPart
public static float fractionalPart(float value)- Mappings:
Namespace Name Mixin selector official hLaha;h(F)Fintermediary method_22450Lnet/minecraft/class_3532;method_22450(F)Fnamed fractionalPartLnet/minecraft/util/math/MathHelper;fractionalPart(F)F
-
fractionalPart
public static double fractionalPart(double value)- Mappings:
Namespace Name Mixin selector official gLaha;g(D)Dintermediary method_15385Lnet/minecraft/class_3532;method_15385(D)Dnamed fractionalPartLnet/minecraft/util/math/MathHelper;fractionalPart(D)D
-
method_34946
public static Vec3d method_34946(Vec3d vec3d, Vec3d vec3d2, Vec3d vec3d3, Vec3d vec3d4, double double2)- Mappings:
Namespace Name Mixin selector official aLaha;a(Ldna;Ldna;Ldna;Ldna;D)Ldna;intermediary method_34946Lnet/minecraft/class_3532;method_34946(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_243;D)Lnet/minecraft/class_243;named method_34946Lnet/minecraft/util/math/MathHelper;method_34946(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;D)Lnet/minecraft/util/math/Vec3d;
-
hashCode
- Mappings:
Namespace Name Mixin selector official aLaha;a(Lhb;)Jintermediary method_15389Lnet/minecraft/class_3532;method_15389(Lnet/minecraft/class_2382;)Jnamed hashCodeLnet/minecraft/util/math/MathHelper;hashCode(Lnet/minecraft/util/math/Vec3i;)J
-
hashCode
public static long hashCode(int x, int y, int z)- Mappings:
Namespace Name Mixin selector official cLaha;c(III)Jintermediary method_15371Lnet/minecraft/class_3532;method_15371(III)Jnamed hashCodeLnet/minecraft/util/math/MathHelper;hashCode(III)J
-
randomUuid
- Mappings:
Namespace Name Mixin selector official aLaha;a(Ljava/util/Random;)Ljava/util/UUID;intermediary method_15378Lnet/minecraft/class_3532;method_15378(Ljava/util/Random;)Ljava/util/UUID;named randomUuidLnet/minecraft/util/math/MathHelper;randomUuid(Ljava/util/Random;)Ljava/util/UUID;
-
randomUuid
- Mappings:
Namespace Name Mixin selector official aLaha;a()Ljava/util/UUID;intermediary method_15394Lnet/minecraft/class_3532;method_15394()Ljava/util/UUID;named randomUuidLnet/minecraft/util/math/MathHelper;randomUuid()Ljava/util/UUID;
-
getLerpProgress
public static double getLerpProgress(double value, double start, double end)Gets the fraction of the way thatvalueis betweenstartandend. This is the delta value needed to lerp betweenstartandendto getvalue. In other words,getLerpProgress(lerp(delta, start, end), start, end) == delta.- Parameters:
value- the result of the lerp functionstart- the value interpolated fromend- the value interpolated to- Mappings:
Namespace Name Mixin selector official cLaha;c(DDD)Dintermediary method_15370Lnet/minecraft/class_3532;method_15370(DDD)Dnamed getLerpProgressLnet/minecraft/util/math/MathHelper;getLerpProgress(DDD)D
-
method_34945
- Mappings:
Namespace Name Mixin selector official aLaha;a(Ldna;Ldna;Ldmv;)Zintermediary method_34945Lnet/minecraft/class_3532;method_34945(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_238;)Znamed method_34945Lnet/minecraft/util/math/MathHelper;method_34945(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Box;)Z
-
atan2
public static double atan2(double y, double x)- Mappings:
Namespace Name Mixin selector official dLaha;d(DD)Dintermediary method_15349Lnet/minecraft/class_3532;method_15349(DD)Dnamed atan2Lnet/minecraft/util/math/MathHelper;atan2(DD)D
-
fastInverseSqrt
public static float fastInverseSqrt(float x)- Mappings:
Namespace Name Mixin selector official iLaha;i(F)Fintermediary method_22858Lnet/minecraft/class_3532;method_22858(F)Fnamed fastInverseSqrtLnet/minecraft/util/math/MathHelper;fastInverseSqrt(F)F
-
fastInverseSqrt
public static double fastInverseSqrt(double x)- Mappings:
Namespace Name Mixin selector official hLaha;h(D)Dintermediary method_15345Lnet/minecraft/class_3532;method_15345(D)Dnamed fastInverseSqrtLnet/minecraft/util/math/MathHelper;fastInverseSqrt(D)D
-
fastInverseCbrt
public static float fastInverseCbrt(float x)- Mappings:
Namespace Name Mixin selector official jLaha;j(F)Fintermediary method_23278Lnet/minecraft/class_3532;method_23278(F)Fnamed fastInverseCbrtLnet/minecraft/util/math/MathHelper;fastInverseCbrt(F)F
-
hsvToRgb
public static int hsvToRgb(float hue, float saturation, float value)- Mappings:
Namespace Name Mixin selector official gLaha;g(FFF)Iintermediary method_15369Lnet/minecraft/class_3532;method_15369(FFF)Inamed hsvToRgbLnet/minecraft/util/math/MathHelper;hsvToRgb(FFF)I
-
idealHash
public static int idealHash(int value)- Mappings:
Namespace Name Mixin selector official gLaha;g(I)Iintermediary method_15354Lnet/minecraft/class_3532;method_15354(I)Inamed idealHashLnet/minecraft/util/math/MathHelper;idealHash(I)I
-
method_34944
public static long method_34944(long long2)- Mappings:
Namespace Name Mixin selector official aLaha;a(J)Jintermediary method_34944Lnet/minecraft/class_3532;method_34944(J)Jnamed method_34944Lnet/minecraft/util/math/MathHelper;method_34944(J)J
-
getCumulativeDistribution
public static double[] getCumulativeDistribution(double[] values)- Mappings:
Namespace Name Mixin selector official aLaha;a([D)[Dintermediary method_34951Lnet/minecraft/class_3532;method_34951([D)[Dnamed getCumulativeDistributionLnet/minecraft/util/math/MathHelper;getCumulativeDistribution([D)[D
-
method_34950
- Mappings:
Namespace Name Mixin selector official aLaha;a(Ljava/util/Random;[D)Iintermediary method_34950Lnet/minecraft/class_3532;method_34950(Ljava/util/Random;[D)Inamed method_34950Lnet/minecraft/util/math/MathHelper;method_34950(Ljava/util/Random;[D)I
-
method_34941
public static double[] method_34941(double double2, double double3, double double4, int int2, int int3)- Mappings:
Namespace Name Mixin selector official aLaha;a(DDDII)[Dintermediary method_34941Lnet/minecraft/class_3532;method_34941(DDDII)[Dnamed method_34941Lnet/minecraft/util/math/MathHelper;method_34941(DDDII)[D
-
method_34940
public static double[] method_34940(double double2, double double3, double double4, double double5, double double6, double double7, int int2, int int3)- Mappings:
Namespace Name Mixin selector official aLaha;a(DDDDDDII)[Dintermediary method_34940Lnet/minecraft/class_3532;method_34940(DDDDDDII)[Dnamed method_34940Lnet/minecraft/util/math/MathHelper;method_34940(DDDDDDII)[D
-
method_34942
public static double[] method_34942(double double2, double double3, int int2, int int3)- Mappings:
Namespace Name Mixin selector official aLaha;a(DDII)[Dintermediary method_34942Lnet/minecraft/class_3532;method_34942(DDII)[Dnamed method_34942Lnet/minecraft/util/math/MathHelper;method_34942(DDII)[D
-
binarySearch
- Mappings:
Namespace Name Mixin selector official aLaha;a(IILjava/util/function/IntPredicate;)Iintermediary method_15360Lnet/minecraft/class_3532;method_15360(IILjava/util/function/IntPredicate;)Inamed binarySearchLnet/minecraft/util/math/MathHelper;binarySearch(IILjava/util/function/IntPredicate;)I
-
lerp
public static float lerp(float delta, float start, float end)- Mappings:
Namespace Name Mixin selector official hLaha;h(FFF)Fintermediary method_16439Lnet/minecraft/class_3532;method_16439(FFF)Fnamed lerpLnet/minecraft/util/math/MathHelper;lerp(FFF)F
-
lerp
public static double lerp(double delta, double start, double end)- Mappings:
Namespace Name Mixin selector official dLaha;d(DDD)Dintermediary method_16436Lnet/minecraft/class_3532;method_16436(DDD)Dnamed lerpLnet/minecraft/util/math/MathHelper;lerp(DDD)D
-
lerp2
public static double lerp2(double deltaX, double deltaY, double x0y0, double x1y0, double x0y1, double x1y1)A two-dimensional lerp between values on the 4 corners of the unit square. Arbitrary values are specified for the corners and the output is interpolated between them.- Parameters:
deltaX- the x-coordinate on the unit squaredeltaY- the y-coordinate on the unit squarex0y0- the output ifdeltaXis 0 anddeltaYis 0x1y0- the output ifdeltaXis 1 anddeltaYis 0x0y1- the output ifdeltaXis 0 anddeltaYis 1x1y1- the output ifdeltaXis 1 anddeltaYis 1- Mappings:
Namespace Name Mixin selector official aLaha;a(DDDDDD)Dintermediary method_16437Lnet/minecraft/class_3532;method_16437(DDDDDD)Dnamed lerp2Lnet/minecraft/util/math/MathHelper;lerp2(DDDDDD)D
-
lerp3
public static double lerp3(double deltaX, double deltaY, double deltaZ, double x0y0z0, double x1y0z0, double x0y1z0, double x1y1z0, double x0y0z1, double x1y0z1, double x0y1z1, double x1y1z1)A three-dimensional lerp between values on the 8 corners of the unit cube. Arbitrary values are specified for the corners and the output is interpolated between them.- Parameters:
deltaX- the x-coordinate on the unit cubedeltaY- the y-coordinate on the unit cubedeltaZ- the z-coordinate on the unit cubex0y0z0- the output ifdeltaXis 0,deltaYis 0 anddeltaZis 0x1y0z0- the output ifdeltaXis 1,deltaYis 0 anddeltaZis 0x0y1z0- the output ifdeltaXis 0,deltaYis 1 anddeltaZis 0x1y1z0- the output ifdeltaXis 1,deltaYis 1 anddeltaZis 0x0y0z1- the output ifdeltaXis 0,deltaYis 0 anddeltaZis 1x1y0z1- the output ifdeltaXis 1,deltaYis 0 anddeltaZis 1x0y1z1- the output ifdeltaXis 0,deltaYis 1 anddeltaZis 1x1y1z1- the output ifdeltaXis 1,deltaYis 1 anddeltaZis 1- Mappings:
Namespace Name Mixin selector official aLaha;a(DDDDDDDDDDD)Dintermediary method_16438Lnet/minecraft/class_3532;method_16438(DDDDDDDDDDD)Dnamed lerp3Lnet/minecraft/util/math/MathHelper;lerp3(DDDDDDDDDDD)D
-
perlinFade
public static double perlinFade(double value)- Mappings:
Namespace Name Mixin selector official iLaha;i(D)Dintermediary method_16435Lnet/minecraft/class_3532;method_16435(D)Dnamed perlinFadeLnet/minecraft/util/math/MathHelper;perlinFade(D)D
-
perlinFadeDerivative
public static double perlinFadeDerivative(double value)- Mappings:
Namespace Name Mixin selector official jLaha;j(D)Dintermediary method_34956Lnet/minecraft/class_3532;method_34956(D)Dnamed perlinFadeDerivativeLnet/minecraft/util/math/MathHelper;perlinFadeDerivative(D)D
-
sign
public static int sign(double value)- Mappings:
Namespace Name Mixin selector official kLaha;k(D)Iintermediary method_17822Lnet/minecraft/class_3532;method_17822(D)Inamed signLnet/minecraft/util/math/MathHelper;sign(D)I
-
lerpAngleDegrees
public static float lerpAngleDegrees(float delta, float start, float end)- Mappings:
Namespace Name Mixin selector official iLaha;i(FFF)Fintermediary method_17821Lnet/minecraft/class_3532;method_17821(FFF)Fnamed lerpAngleDegreesLnet/minecraft/util/math/MathHelper;lerpAngleDegrees(FFF)F
-
method_34955
public static float method_34955(float float2, float float3, float float4)- Mappings:
Namespace Name Mixin selector official jLaha;j(FFF)Fintermediary method_34955Lnet/minecraft/class_3532;method_34955(FFF)Fnamed method_34955Lnet/minecraft/util/math/MathHelper;method_34955(FFF)F
-
lerpAngle
Deprecated.- Mappings:
Namespace Name Mixin selector official kLaha;k(FFF)Fintermediary method_22859Lnet/minecraft/class_3532;method_22859(FFF)Fnamed lerpAngleLnet/minecraft/util/math/MathHelper;lerpAngle(FFF)F
-
fwrapDegrees
Deprecated.- Mappings:
Namespace Name Mixin selector official lLaha;l(D)Fintermediary method_22860Lnet/minecraft/class_3532;method_22860(D)Fnamed fwrapDegreesLnet/minecraft/util/math/MathHelper;fwrapDegrees(D)F
-
wrap
public static float wrap(float value, float maxDeviation)- Mappings:
Namespace Name Mixin selector official eLaha;e(FF)Fintermediary method_24504Lnet/minecraft/class_3532;method_24504(FF)Fnamed wrapLnet/minecraft/util/math/MathHelper;wrap(FF)F
-
square
public static float square(float n)- Mappings:
Namespace Name Mixin selector official kLaha;k(F)Fintermediary method_27285Lnet/minecraft/class_3532;method_27285(F)Fnamed squareLnet/minecraft/util/math/MathHelper;square(F)F
-
square
public static double square(double n)- Mappings:
Namespace Name Mixin selector official mLaha;m(D)Dintermediary method_33723Lnet/minecraft/class_3532;method_33723(D)Dnamed squareLnet/minecraft/util/math/MathHelper;square(D)D
-
square
public static int square(int n)- Mappings:
Namespace Name Mixin selector official hLaha;h(I)Iintermediary method_34954Lnet/minecraft/class_3532;method_34954(I)Inamed squareLnet/minecraft/util/math/MathHelper;square(I)I
-
clampedLerpFromProgress
public static double clampedLerpFromProgress(double lerpValue, double lerpStart, double lerpEnd, double start, double end)- Mappings:
Namespace Name Mixin selector official aLaha;a(DDDDD)Dintermediary method_32854Lnet/minecraft/class_3532;method_32854(DDDDD)Dnamed clampedLerpFromProgressLnet/minecraft/util/math/MathHelper;clampedLerpFromProgress(DDDDD)D
-
lerpFromProgress
public static double lerpFromProgress(double lerpValue, double lerpStart, double lerpEnd, double start, double end)- Mappings:
Namespace Name Mixin selector official bLaha;b(DDDDD)Dintermediary method_33722Lnet/minecraft/class_3532;method_33722(DDDDD)Dnamed lerpFromProgressLnet/minecraft/util/math/MathHelper;lerpFromProgress(DDDDD)D
-
method_34957
public static double method_34957(double double2)- Mappings:
Namespace Name Mixin selector official nLaha;n(D)Dintermediary method_34957Lnet/minecraft/class_3532;method_34957(D)Dnamed method_34957Lnet/minecraft/util/math/MathHelper;method_34957(D)D
-
roundUpToMultiple
public static int roundUpToMultiple(int value, int divisor)Returns a value farther than or as far asvaluefrom zero that is a multiple ofdivisor.- Mappings:
Namespace Name Mixin selector official dLaha;d(II)Iintermediary method_28139Lnet/minecraft/class_3532;method_28139(II)Inamed roundUpToMultipleLnet/minecraft/util/math/MathHelper;roundUpToMultiple(II)I
-
nextBetween
- Mappings:
Namespace Name Mixin selector official bLaha;b(Ljava/util/Random;II)Iintermediary method_32751Lnet/minecraft/class_3532;method_32751(Ljava/util/Random;II)Inamed nextBetweenLnet/minecraft/util/math/MathHelper;nextBetween(Ljava/util/Random;II)I
-
nextBetween
- Mappings:
Namespace Name Mixin selector official bLaha;b(Ljava/util/Random;FF)Fintermediary method_32750Lnet/minecraft/class_3532;method_32750(Ljava/util/Random;FF)Fnamed nextBetweenLnet/minecraft/util/math/MathHelper;nextBetween(Ljava/util/Random;FF)F
-
nextGaussian
- Mappings:
Namespace Name Mixin selector official cLaha;c(Ljava/util/Random;FF)Fintermediary method_32855Lnet/minecraft/class_3532;method_32855(Ljava/util/Random;FF)Fnamed nextGaussianLnet/minecraft/util/math/MathHelper;nextGaussian(Ljava/util/Random;FF)F
-
magnitude
public static double magnitude(int x, double y, int z)- Mappings:
Namespace Name Mixin selector official aLaha;a(IDI)Dintermediary method_33825Lnet/minecraft/class_3532;method_33825(IDI)Dnamed magnitudeLnet/minecraft/util/math/MathHelper;magnitude(IDI)D
-