toMinecraftDegree

@NotNull
open fun toMinecraftDegree(@NotNull rotation: @NotNull Quaternionfc): @NotNull Float3

Converts a rotation quaternion to the XYZ Euler angles used by Minecraft item display transforms.


var degrees = MathUtil.toMinecraftDegree(new Quaternionf());

Return

the XYZ Euler angles in degrees

Since

3.7.0

Parameters

rotation

the rotation quaternion