Class Interval
java.lang.Object
net.minecraft.util.Interval
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Intervalstatic Intervalstatic Intervalbooleancontains(float value) static Intervalstatic Intervalencapsulating(float first, float second) static Intervalencapsulating(List<Interval> intervals) static Intervalencapsulating(Interval... intervals) private static Intervalencapsulating(Interval first, float second) booleaninthashCode()booleanintersects(Interval other) booleanisNaI()static Intervalstatic Intervalprivate static floatlerpFiniteBound(float alpha, float first, float second) private static IntervallerpFiniteBounds(Interval alpha, float first, float second) private static floatlerpInfiniteBound(float alpha, float first, float second) private static IntervallerpInfiniteBounds(Interval alpha, float first, float second) static Intervalstatic IntervalmapMonotonic(Interval input, it.unimi.dsi.fastutil.floats.FloatUnaryOperator monotonicOp) floatmax()static Intervalfloatmin()static Intervalstatic Intervalprivate static floatmulBound(float left, float right) static Intervalof(float min, float max) static IntervalofExact(float value) static IntervalofSymmetric(float range) private static Intervalstatic Intervalprivate static IntervalpowInfiniteExponent(float base, Interval exponent) private static IntervalpowNegativeBase(float base, Interval exponent) private static IntervalpowPositiveBase(float base, Interval exponent) private static IntervalpowZeroBase(Interval exponent) static Intervalreciprocal(Interval input) static Intervalstatic Intervalstatic IntervaltoString()
-
Field Details
-
NaI
-
INFINITE
-
NEGATIVE_ONE_TO_ONE
-
ZERO_TO_ONE
-
min
private final float min -
max
private final float max
-
-
Constructor Details
-
Interval
private Interval(float min, float max)
-
-
Method Details
-
of
-
ofSymmetric
-
ofExact
-
encapsulating
-
encapsulating
-
encapsulating
-
encapsulating
-
add
-
sub
-
mul
-
mulBound
private static float mulBound(float left, float right) -
reciprocal
-
div
-
min
-
max
-
clamp
-
abs
-
square
-
pow
-
pow
-
powPositiveBase
-
powZeroBase
-
powInfiniteExponent
-
powNegativeBase
-
log
-
mapMonotonic
-
lerp
-
lerp
-
lerpFiniteBounds
-
lerpFiniteBound
private static float lerpFiniteBound(float alpha, float first, float second) -
lerpInfiniteBounds
-
lerpInfiniteBound
private static float lerpInfiniteBound(float alpha, float first, float second) -
sign
-
contains
public boolean contains(float value) -
intersects
-
isNaI
public boolean isNaI() -
min
public float min() -
max
public float max() -
equals
-
hashCode
-
toString
-