Class RotationHandler

java.lang.Object
hm.zelha.particlesfx.shapers.parents.RotationHandler
Direct Known Subclasses:
ParticleShapeCompound, ParticleShaper

public class RotationHandler extends Object
  • Field Details

    • locations

      protected final List<LocationSafe> locations
    • origins

      protected final List<org.bukkit.Location> origins
    • compounds

      protected final List<ParticleShapeCompound> compounds
    • rot

      protected final Rotation rot
    • rot2

      protected final Rotation rot2
    • rotHelper

      protected final Rotation rotHelper
    • originalCentroid

      protected final org.bukkit.Location originalCentroid
    • lastRotatedAround

      protected final org.bukkit.Location lastRotatedAround
    • centroid

      protected final org.bukkit.Location centroid
    • rhRotHelper

      protected final Rotation rhRotHelper
    • rhLocationHelper

      protected final org.bukkit.Location rhLocationHelper
    • rhVectorHelper

      protected final org.bukkit.util.Vector rhVectorHelper
  • Constructor Details

    • RotationHandler

      public RotationHandler()
  • Method Details

    • rotate

      public void rotate(double pitch, double yaw, double roll)
    • rotateAroundLocation

      public void rotateAroundLocation(org.bukkit.Location around, double pitch, double yaw, double roll)
    • face

      public void face(org.bukkit.Location toFace)
    • faceAroundLocation

      public void faceAroundLocation(org.bukkit.Location toFace, org.bukkit.Location around)
    • move

      public void move(double x, double y, double z)
    • move

      public void move(org.bukkit.util.Vector vector)
    • move

      public void move(org.bukkit.Location location)
    • scale

      public void scale(double x, double y, double z)
    • scale

      public void scale(double scale)
    • recalculateIfNeeded

      protected boolean recalculateIfNeeded(@Nullable org.bukkit.Location around)
    • getDirection

      protected double[] getDirection(org.bukkit.Location toFace, org.bukkit.Location around)
    • calculateCentroid

      protected void calculateCentroid(List<? extends org.bukkit.Location> locations)
    • addCompound

      protected void addCompound(ParticleShapeCompound compound, RotationHandler shape)
    • removeCompound

      protected void removeCompound(ParticleShapeCompound compound, RotationHandler shape)
    • getLocationsList

      protected ArrayListSafe<LocationSafe> getLocationsList(RotationHandler other)
    • setWorld

      public void setWorld(org.bukkit.World world)
    • setRotation

      public void setRotation(double pitch, double yaw, double roll)
    • setRotationOrder

      public void setRotationOrder(Rotation.Axis first, Rotation.Axis second, Rotation.Axis third)
    • setPitch

      public void setPitch(double pitch)
    • setYaw

      public void setYaw(double yaw)
    • setRoll

      public void setRoll(double roll)
    • setAroundRotation

      public void setAroundRotation(org.bukkit.Location around, double pitch, double yaw, double roll)
    • setAroundRotationOrder

      public void setAroundRotationOrder(org.bukkit.Location around, Rotation.Axis first, Rotation.Axis second, Rotation.Axis third)
    • setAroundPitch

      public void setAroundPitch(org.bukkit.Location around, double pitch)
    • setAroundYaw

      public void setAroundYaw(org.bukkit.Location around, double yaw)
    • setAroundRoll

      public void setAroundRoll(org.bukkit.Location around, double roll)
    • setAxisRotation

      public void setAxisRotation(double pitch, double yaw, double roll)
    • setAxisPitch

      public void setAxisPitch(double pitch)
    • setAxisYaw

      public void setAxisYaw(double yaw)
    • setAxisRoll

      public void setAxisRoll(double roll)
    • setAroundAxisRotation

      public void setAroundAxisRotation(org.bukkit.Location around, double pitch, double yaw, double roll)
    • setAroundAxisPitch

      public void setAroundAxisPitch(org.bukkit.Location around, double pitch)
    • setAroundAxisYaw

      public void setAroundAxisYaw(org.bukkit.Location around, double yaw)
    • setAroundAxisRoll

      public void setAroundAxisRoll(org.bukkit.Location around, double roll)
    • getWorld

      public org.bukkit.World getWorld()
    • getRotationOrder

      public Rotation.Axis[] getRotationOrder()
    • getPitch

      public double getPitch()
    • getYaw

      public double getYaw()
    • getRoll

      public double getRoll()
    • getAroundRotationOrder

      public Rotation.Axis[] getAroundRotationOrder()
    • getAroundPitch

      public double getAroundPitch()
    • getAroundYaw

      public double getAroundYaw()
    • getAroundRoll

      public double getAroundRoll()
    • getAxisPitch

      public double getAxisPitch()
    • getAxisYaw

      public double getAxisYaw()
    • getAxisRoll

      public double getAxisRoll()
    • getAroundAxisPitch

      public double getAroundAxisPitch()
    • getAroundAxisYaw

      public double getAroundAxisYaw()
    • getAroundAxisRoll

      public double getAroundAxisRoll()
    • getLocations

      public org.bukkit.Location[] getLocations()
    • getLocationAmount

      public int getLocationAmount()
    • getTotalDistance

      public double getTotalDistance()
    • getClonedCenter

      public org.bukkit.Location getClonedCenter()