Class Point3D

java.lang.Object
studio.magemonkey.fabled.data.Point3D

public class Point3D extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
     
    double
     
    double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Point3D(double x, double y, double z)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    rotate(double xRot, double yRot, double zRot)
    Rotates the point around the origin
    void
    rotateX(double xRot)
    Rotates the point around the origin
    void
    rotateY(double yRot)
    Rotates the point around the origin
    void
    rotateZ(double zRot)
    Rotates the point around the origin
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      public double x
    • y

      public double y
    • z

      public double z
  • Constructor Details

    • Point3D

      public Point3D()
    • Point3D

      public Point3D(double x, double y, double z)
  • Method Details

    • rotate

      public void rotate(double xRot, double yRot, double zRot)
      Rotates the point around the origin
      Parameters:
      xRot - The rotation around the x-axis (in degrees)
      yRot - The rotation around the y-axis (in degrees)
      zRot - The rotation around the z-axis (in degrees)
    • rotateX

      public void rotateX(double xRot)
      Rotates the point around the origin
      Parameters:
      xRot - The rotation around the x-axis (in degrees)
    • rotateY

      public void rotateY(double yRot)
      Rotates the point around the origin
      Parameters:
      yRot - The rotation around the y-axis (in degrees)
    • rotateZ

      public void rotateZ(double zRot)
      Rotates the point around the origin
      Parameters:
      zRot - The rotation around the z-axis (in degrees)
    • toString

      public String toString()
      Overrides:
      toString in class Object