Class NonMutatingQuaternionRotator
java.lang.Object
org.skriptlang.skript.bukkit.misc.rotation.NonMutatingQuaternionRotator
- All Implemented Interfaces:
Rotator<org.joml.Quaternionf>
Rotates
Quaternionf
s around the X, Y, and Z axes, as well as any arbitrary axis.
Supports all local axes.
Returns new quaternion objects rather than mutating the input quaternion.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.skriptlang.skript.bukkit.misc.rotation.Rotator
Rotator.Axis
-
Constructor Summary
ConstructorDescriptionNonMutatingQuaternionRotator
(Rotator.Axis axis, float angle) NonMutatingQuaternionRotator
(Rotator.Axis axis, org.joml.Vector3f vector, float angle) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Quaternionf
rotate
(org.joml.Quaternionf input) Rotates the input around the rotator's axis by the rotator's angle.
-
Constructor Details
-
NonMutatingQuaternionRotator
-
NonMutatingQuaternionRotator
-
-
Method Details