Package net.minecraft.util.math
Class MathHelper
java.lang.Object
net.minecraft.util.math.MathHelper
public class MathHelper extends Object
- Mappings:
Namespace Name official aguintermediary net/minecraft/class_3532named net/minecraft/util/math/MathHelper
-
Field Summary
Fields Modifier and Type Field Description private static double[]ARCSINE_TABLEprivate static double[]COSINE_TABLEprivate static int[]MULTIPLY_DE_BRUIJN_BIT_POSITIONprivate static RandomRANDOMprivate static float[]SINE_TABLEprivate static doubleSMALLEST_FRACTION_FREE_DOUBLEstatic floatSQUARE_ROOT_OF_TWO -
Constructor Summary
Constructors Constructor Description MathHelper() -
Method Summary
Modifier and Type Method Description static floatabs(float value)static intabs(int value)static doubleabsMax(double double2, double double3)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 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 int2, int int3)static doublefloorMod(double double2, double double3)static floatfloorMod(float float2, float float3)static intfloorMod(int int2, int int3)static doublefractionalPart(double value)static floatfractionalPart(float value)static floatfwrapDegrees(double degrees)Deprecated.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 longhashCode(Vec3i vec)static inthsvToRgb(float hue, float saturation, float value)static intidealHash(int int2)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 val00, double val10, double val01, double val11)A two-dimensional lerp between values on the 4 corners of the unit square.static doublelerp3(double deltaX, double deltaY, double deltaZ, double val000, double val100, double val010, double val110, double val001, double val101, double val011, double val111)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 floatnextBetween(Random random, float min, float max)static intnextBetween(Random random, int min, int max)static doublenextDouble(Random random, double min, double max)static floatnextFloat(Random random, float min, float max)static floatnextGaussian(Random random, float mean, float deviation)static intnextInt(Random random, int min, int max)static intpackRgb(float r, float g, float b)static intpackRgb(int r, int g, int b)static intparseInt(String string, int fallback)static doubleperlinFade(double value)static UUIDrandomUuid()static 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(double value)static floatsqrt(float value)static doublesquare(double n)static floatsquare(float 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 double2)static floatwrapDegrees(float float2)static intwrapDegrees(int int2)
-
Field Details
-
SQUARE_ROOT_OF_TWO
public static final float SQUARE_ROOT_OF_TWO- Mappings:
Namespace Name Mixin selector official aLagu;a:Fintermediary field_15724Lnet/minecraft/class_3532;field_15724:Fnamed SQUARE_ROOT_OF_TWOLnet/minecraft/util/math/MathHelper;SQUARE_ROOT_OF_TWO:F
-
SINE_TABLE
private static final float[] SINE_TABLE- Mappings:
Namespace Name Mixin selector official bLagu;b:[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 cLagu;c: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 dLagu;d:[Iintermediary field_15723Lnet/minecraft/class_3532;field_15723:[Inamed MULTIPLY_DE_BRUIJN_BIT_POSITIONLnet/minecraft/util/math/MathHelper;MULTIPLY_DE_BRUIJN_BIT_POSITION:[I
-
SMALLEST_FRACTION_FREE_DOUBLE
private static final double SMALLEST_FRACTION_FREE_DOUBLE- Mappings:
Namespace Name Mixin selector official eLagu;e: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 fLagu;f:[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 gLagu;g:[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 aLagu;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 bLagu;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 cLagu;c(F)Fintermediary method_15355Lnet/minecraft/class_3532;method_15355(F)Fnamed sqrtLnet/minecraft/util/math/MathHelper;sqrt(F)F
-
sqrt
public static float sqrt(double value)- Mappings:
Namespace Name Mixin selector official aLagu;a(D)Fintermediary method_15368Lnet/minecraft/class_3532;method_15368(D)Fnamed sqrtLnet/minecraft/util/math/MathHelper;sqrt(D)F
-
floor
public static int floor(float value)- Mappings:
Namespace Name Mixin selector official dLagu;d(F)Iintermediary method_15375Lnet/minecraft/class_3532;method_15375(F)Inamed floorLnet/minecraft/util/math/MathHelper;floor(F)I
-
fastFloor
- Mappings:
Namespace Name Mixin selector official bLagu;b(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 cLagu;c(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 dLagu;d(D)Jintermediary method_15372Lnet/minecraft/class_3532;method_15372(D)Jnamed lfloorLnet/minecraft/util/math/MathHelper;lfloor(D)J
-
abs
public static float abs(float value)- Mappings:
Namespace Name Mixin selector official eLagu;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 aLagu;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 fLagu;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 fLagu;f(D)Iintermediary method_15384Lnet/minecraft/class_3532;method_15384(D)Inamed ceilLnet/minecraft/util/math/MathHelper;ceil(D)I
-
clamp
public static int clamp(int value, int min, int max)- Mappings:
Namespace Name Mixin selector official aLagu;a(III)Iintermediary method_15340Lnet/minecraft/class_3532;method_15340(III)Inamed clampLnet/minecraft/util/math/MathHelper;clamp(III)I
-
clamp
- Mappings:
Namespace Name Mixin selector official aLagu;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 aLagu;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 aLagu;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 bLagu;b(DDD)Dintermediary method_15390Lnet/minecraft/class_3532;method_15390(DDD)Dnamed clampedLerpLnet/minecraft/util/math/MathHelper;clampedLerp(DDD)D
-
absMax
public static double absMax(double double2, double double3)- Mappings:
Namespace Name Mixin selector official aLagu;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 int2, int int3)- Mappings:
Namespace Name Mixin selector official aLagu;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 aLagu;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 aLagu;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 aLagu;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 aLagu;a([J)Dintermediary method_15373Lnet/minecraft/class_3532;method_15373([J)Dnamed averageLnet/minecraft/util/math/MathHelper;average([J)D
-
approximatelyEquals
- Mappings:
Namespace Name Mixin selector official aLagu;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 bLagu;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 int2, int int3)- Mappings:
Namespace Name Mixin selector official bLagu;b(II)Iintermediary method_15387Lnet/minecraft/class_3532;method_15387(II)Inamed floorModLnet/minecraft/util/math/MathHelper;floorMod(II)I
-
floorMod
- Mappings:
Namespace Name Mixin selector official bLagu;b(FF)Fintermediary method_15341Lnet/minecraft/class_3532;method_15341(FF)Fnamed floorModLnet/minecraft/util/math/MathHelper;floorMod(FF)F
-
floorMod
- Mappings:
Namespace Name Mixin selector official cLagu;c(DD)Dintermediary method_15367Lnet/minecraft/class_3532;method_15367(DD)Dnamed floorModLnet/minecraft/util/math/MathHelper;floorMod(DD)D
-
wrapDegrees
- Mappings:
Namespace Name Mixin selector official bLagu;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 float2)- Mappings:
Namespace Name Mixin selector official gLagu;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 double2)- Mappings:
Namespace Name Mixin selector official gLagu;g(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 cLagu;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 dLagu;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 bLagu;b(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 cLagu;c(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 dLagu;d(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 aLagu;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
-
smallestEncompassingPowerOfTwo
public static int smallestEncompassingPowerOfTwo(int value)- Mappings:
Namespace Name Mixin selector official cLagu;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 dLagu;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 eLagu;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 fLagu;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 eLagu;e(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 bLagu;b(III)Iintermediary method_15383Lnet/minecraft/class_3532;method_15383(III)Inamed packRgbLnet/minecraft/util/math/MathHelper;packRgb(III)I
-
fractionalPart
public static float fractionalPart(float value)- Mappings:
Namespace Name Mixin selector official hLagu;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 hLagu;h(D)Dintermediary method_15385Lnet/minecraft/class_3532;method_15385(D)Dnamed fractionalPartLnet/minecraft/util/math/MathHelper;fractionalPart(D)D
-
hashCode
- Mappings:
Namespace Name Mixin selector official aLagu;a(Lgs;)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 cLagu;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 aLagu;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 aLagu;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 cLagu;c(DDD)Dintermediary method_15370Lnet/minecraft/class_3532;method_15370(DDD)Dnamed getLerpProgressLnet/minecraft/util/math/MathHelper;getLerpProgress(DDD)D
-
atan2
public static double atan2(double y, double x)- Mappings:
Namespace Name Mixin selector official dLagu;d(DD)Dintermediary method_15349Lnet/minecraft/class_3532;method_15349(DD)Dnamed atan2Lnet/minecraft/util/math/MathHelper;atan2(DD)D
-
fastInverseSqrt
- Mappings:
Namespace Name Mixin selector official iLagu;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 iLagu;i(D)Dintermediary method_15345Lnet/minecraft/class_3532;method_15345(D)Dnamed fastInverseSqrtLnet/minecraft/util/math/MathHelper;fastInverseSqrt(D)D
-
fastInverseCbrt
- Mappings:
Namespace Name Mixin selector official jLagu;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 fLagu;f(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 int2)- Mappings:
Namespace Name Mixin selector official gLagu;g(I)Iintermediary method_15354Lnet/minecraft/class_3532;method_15354(I)Inamed idealHashLnet/minecraft/util/math/MathHelper;idealHash(I)I
-
binarySearch
- Mappings:
Namespace Name Mixin selector official aLagu;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 gLagu;g(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 dLagu;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 val00, double val10, double val01, double val11)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 squareval00- The output ifdeltaXis 0 anddeltaYis 0val10- The output ifdeltaXis 1 anddeltaYis 0val01- The output ifdeltaXis 0 anddeltaYis 1val11- The output ifdeltaXis 1 anddeltaYis 1- Mappings:
Namespace Name Mixin selector official aLagu;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 val000, double val100, double val010, double val110, double val001, double val101, double val011, double val111)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 cubeval000- The output ifdeltaXis 0,deltaYis 0 anddeltaZis 0val100- The output ifdeltaXis 1,deltaYis 0 anddeltaZis 0val010- The output ifdeltaXis 0,deltaYis 1 anddeltaZis 0val110- The output ifdeltaXis 1,deltaYis 1 anddeltaZis 0val001- The output ifdeltaXis 0,deltaYis 0 anddeltaZis 1val101- The output ifdeltaXis 1,deltaYis 0 anddeltaZis 1val011- The output ifdeltaXis 0,deltaYis 1 anddeltaZis 1val111- The output ifdeltaXis 1,deltaYis 1 anddeltaZis 1- Mappings:
Namespace Name Mixin selector official aLagu;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 jLagu;j(D)Dintermediary method_16435Lnet/minecraft/class_3532;method_16435(D)Dnamed perlinFadeLnet/minecraft/util/math/MathHelper;perlinFade(D)D
-
sign
public static int sign(double value)- Mappings:
Namespace Name Mixin selector official lLagu;l(D)Iintermediary method_17822Lnet/minecraft/class_3532;method_17822(D)Inamed signLnet/minecraft/util/math/MathHelper;sign(D)I
-
lerpAngleDegrees
- Mappings:
Namespace Name Mixin selector official hLagu;h(FFF)Fintermediary method_17821Lnet/minecraft/class_3532;method_17821(FFF)Fnamed lerpAngleDegreesLnet/minecraft/util/math/MathHelper;lerpAngleDegrees(FFF)F
-
lerpAngle
Deprecated.- Mappings:
Namespace Name Mixin selector official jLagu;j(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 mLagu;m(D)Fintermediary method_22860Lnet/minecraft/class_3532;method_22860(D)Fnamed fwrapDegreesLnet/minecraft/util/math/MathHelper;fwrapDegrees(D)F
-
wrap
- Mappings:
Namespace Name Mixin selector official eLagu;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 kLagu;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 nLagu;n(D)Dintermediary method_33723Lnet/minecraft/class_3532;method_33723(D)Dnamed squareLnet/minecraft/util/math/MathHelper;square(D)D
-
clampedLerpFromProgress
public static double clampedLerpFromProgress(double lerpValue, double lerpStart, double lerpEnd, double start, double end)- Mappings:
Namespace Name Mixin selector official aLagu;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 bLagu;b(DDDDD)Dintermediary method_33722Lnet/minecraft/class_3532;method_33722(DDDDD)Dnamed lerpFromProgressLnet/minecraft/util/math/MathHelper;lerpFromProgress(DDDDD)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 dLagu;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 bLagu;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 bLagu;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 cLagu;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 aLagu;a(IDI)Dintermediary method_33825Lnet/minecraft/class_3532;method_33825(IDI)Dnamed magnitudeLnet/minecraft/util/math/MathHelper;magnitude(IDI)D
-