net.minecraft.util.math

public class RotationCalculator

net.minecraft.util.SegmentedAnglePrecision
net.minecraft.class_8013
net.minecraft.util.math.RotationCalculator

Field summary

Modifier and TypeField
private final int
mask
field_41760
max
private final int
precision
field_41761
precision
private final float
degreeToAngle
field_41762
rotationPerDegrees
private final float
angleToDegree
field_41763
degreesPerRotation

Constructor summary

ModifierConstructor
public (int precision)

Method summary

Modifier and TypeMethod
public boolean
isSameAxis(int binaryAngleA, int binaryAngleB)
method_48123(int arg0, int arg1)
areRotationsParallel(int alpha, int beta)
public int
fromDirection(Direction direction)
method_48124(class_2350 arg0)
toRotation(Direction direction)
public int
fromDegreesWithTurns(float degrees)
method_48121(float arg0)
toRotation(float degrees)
public int
fromDegrees(float degrees)
method_48125(float arg0)
toClampedRotation(float degrees)
public float
toDegreesWithTurns(int binaryAngle)
method_48122(int arg0)
toDegrees(int rotation)
public float
toDegrees(int binaryAngle)
method_48126(int arg0)
toWrappedDegrees(int rotation)
public int
normalize(int binaryAngle)
method_48127(int arg0)
clamp(int rotationBits)
public int
getMask()
method_48120()
getMax()