java.lang.Object
studio.magemonkey.fabled.api.particle.direction.XZHandler
All Implemented Interfaces:
DirectionHandler

public class XZHandler extends Object implements DirectionHandler
Handles the XZ direction
  • Field Details

    • instance

      public static XZHandler instance
  • Constructor Details

    • XZHandler

      public XZHandler()
  • Method Details

    • apply

      public void apply(Point3D point, double n1, double n2)
      Applies the two results from the polar calculation to a point
      Specified by:
      apply in interface DirectionHandler
      Parameters:
      point - the point to apply it to
      n1 - first value
      n2 - second value
    • rotateX

      public double rotateX(Point3D p, Point2D trig)
      Calculates the X value of a point after rotation
      Specified by:
      rotateX in interface DirectionHandler
      Parameters:
      p - original point
      trig - trig data
      Returns:
      rotation
    • rotateAboutY

      public Point3D rotateAboutY(Point3D p, Matrix3D matrix)
    • rotateAboutY

      public Point3D rotateAboutY(Point3D p, double rads)
    • rotateY

      public double rotateY(Point3D p, Point2D trig)
      Calculates the Y value of a point after rotation
      Specified by:
      rotateY in interface DirectionHandler
      Parameters:
      p - original point
      trig - trig data
      Returns:
      rotation
    • rotateZ

      public double rotateZ(Point3D p, Point2D trig)
      Calculates the Z value of a point after rotation
      Specified by:
      rotateZ in interface DirectionHandler
      Parameters:
      p - original point
      trig - trig data
      Returns:
      rotation