Interface DirectionHandler

All Known Implementing Classes:
XYHandler, XZHandler, YZHandler

public interface DirectionHandler
Handles the directional application
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(Point3D point, double n1, double n2)
    Applies the two results from the polar calculation to a point
    double
    Calculates the X value of a point after rotation
    double
    Calculates the Y value of a point after rotation
    double
    Calculates the Z value of a point after rotation
  • Method Details

    • apply

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

      double rotateX(Point3D p, Point2D trig)
      Calculates the X value of a point after rotation
      Parameters:
      p - original point
      trig - trig data
      Returns:
      rotation
    • rotateY

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

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