Package net.minecraft.util
Class SegmentedAnglePrecision
java.lang.Object
net.minecraft.util.SegmentedAnglePrecision
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
private final float
private final int
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
fromDegrees
(float p_265688_) int
fromDegreesWithTurns
(float p_265346_) int
fromDirection
(Direction p_265731_) int
getMask()
boolean
isSameAxis
(int p_265505_, int p_265708_) int
normalize
(int p_265542_) float
toDegrees
(int p_265623_) float
toDegreesWithTurns
(int p_265278_)
-
Field Details
-
mask
private final int mask -
precision
private final int precision -
degreeToAngle
private final float degreeToAngle -
angleToDegree
private final float angleToDegree
-
-
Constructor Details
-
SegmentedAnglePrecision
public SegmentedAnglePrecision(int p_265275_)
-
-
Method Details
-
isSameAxis
public boolean isSameAxis(int p_265505_, int p_265708_) -
fromDirection
-
fromDegreesWithTurns
public int fromDegreesWithTurns(float p_265346_) -
fromDegrees
public int fromDegrees(float p_265688_) -
toDegreesWithTurns
public float toDegreesWithTurns(int p_265278_) -
toDegrees
public float toDegrees(int p_265623_) -
normalize
public int normalize(int p_265542_) -
getMask
public int getMask()
-