Class NonMutatingVectorRotator
java.lang.Object
org.skriptlang.skript.bukkit.misc.rotation.NonMutatingVectorRotator
- All Implemented Interfaces:
Rotator<org.bukkit.util.Vector>
Rotates
Vector
s around the X, Y, and Z axes, as well as any arbitrary axis.
Does not support local axes.
Returns new vector objects rather than mutating the input vector.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.skriptlang.skript.bukkit.misc.rotation.Rotator
Rotator.Axis
-
Constructor Summary
ConstructorDescriptionNonMutatingVectorRotator
(Rotator.Axis axis, double angle) NonMutatingVectorRotator
(Rotator.Axis axis, org.bukkit.util.Vector vector, double angle) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.util.Vector
rotate
(org.bukkit.util.Vector input) Rotates the input around the rotator's axis by the rotator's angle.
-
Constructor Details
-
NonMutatingVectorRotator
-
NonMutatingVectorRotator
-
-
Method Details