Class QuaternionRotator

java.lang.Object
org.skriptlang.skript.bukkit.misc.rotation.QuaternionRotator
All Implemented Interfaces:
Rotator<org.joml.Quaternionf>

public class QuaternionRotator extends Object implements Rotator<org.joml.Quaternionf>
Rotates Quaternionfs around the X, Y, and Z axes, as well as any arbitrary axis. Supports all local axes.
  • Constructor Details

    • QuaternionRotator

      public QuaternionRotator(Rotator.Axis axis, float angle)
    • QuaternionRotator

      public QuaternionRotator(Rotator.Axis axis, org.joml.Vector3f vector, float angle)
  • Method Details

    • rotate

      @Contract("_ -> param1") public org.joml.Quaternionf rotate(org.joml.Quaternionf input)
      Description copied from interface: Rotator
      Rotates the input around the rotator's axis by the rotator's angle. May modify the input.
      Specified by:
      rotate in interface Rotator<org.joml.Quaternionf>