Class VectorRotator

java.lang.Object
org.skriptlang.skript.bukkit.misc.rotation.VectorRotator
All Implemented Interfaces:
Rotator<org.bukkit.util.Vector>

public class VectorRotator extends Object implements Rotator<org.bukkit.util.Vector>
Rotates Vectors around the X, Y, and Z axes, as well as any arbitrary axis. Does not support local axes.
  • Constructor Details

    • VectorRotator

      public VectorRotator(Rotator.Axis axis, double angle)
    • VectorRotator

      public VectorRotator(Rotator.Axis axis, org.bukkit.util.Vector vector, double angle)
  • Method Details

    • rotate

      @Contract("_ -> param1") public org.bukkit.util.Vector rotate(org.bukkit.util.Vector 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.bukkit.util.Vector>