Class Point3D


  • public class Point3D
    extends java.lang.Object
    Point with X, Y, and Z coordinates with float precision.
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(float deltaX, float deltaY, float deltaZ)  
      Point3D copy()  
      float getX()  
      float getY()  
      float getZ()  
      Point3D normalize()  
      void set​(float x, float y, float z)  
      void set​(Point3D p)  
      void setX​(float x)  
      void setY​(float y)  
      void setZ​(float z)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Point3D

        public Point3D​(float x,
                       float y,
                       float z)
    • Method Detail

      • set

        public void set​(float x,
                        float y,
                        float z)
      • set

        public void set​(Point3D p)
      • setX

        public void setX​(float x)
      • getX

        public float getX()
      • setY

        public void setY​(float y)
      • getY

        public float getY()
      • setZ

        public void setZ​(float z)
      • getZ

        public float getZ()
      • add

        public void add​(float deltaX,
                        float deltaY,
                        float deltaZ)
      • normalize

        public Point3D normalize()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object