Interface Rotation
- All Superinterfaces:
DefaultedRegistryValue<Rotation>, StringRepresentable
@CatalogedBy(Rotations.class)
public interface Rotation
extends DefaultedRegistryValue<Rotation>, StringRepresentable
-
Method Summary
Modifier and TypeMethodDescriptionangle()Gets the the rotation in degrees always in clockwise order.default Matrix4dGets the4D rotation matrixof this rotation.Methods inherited from interface DefaultedRegistryValue
asDefaultedReference, findKey, keyMethods inherited from interface StringRepresentable
serializationString
-
Method Details
-
and
-
angle
-
toRotationMatrix
Gets the4D rotation matrixof this rotation.Minecraft's coordinate system is different than traditional systems applying the semantic meaning behind the
xandzaxis. These natures are described as below:- The x-axis indicates the east (when positive) or west
(when negative) of the origin point
(0, 0, 0) - The z-axis indicates the south (when positive) or north
(when negative) of the origin point
(0, 0, 0)
These rules differ from traditional coordinate interpretations and therefore may be unintuitive when a rotation of
90degrees will instead rotate the coordinates(1, 1, 1)across the pivot(0, 0, 0)- Returns:
- The euler matrix that represents this rotation in the X-Z plane.
- The x-axis indicates the east (when positive) or west
(when negative) of the origin point
-