Class Point3D


  • public class Point3D
    extends java.lang.Object
    Simple integer 3D point.
    Version:
    0.1 Oct 27, 1997
    Author:
    Matthew J. McAuliffe, Ph.D.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      Use serialVersionUID for interoperability.
      int x
      X coordinate of point.
      int y
      Y coordinate of point.
      int z
      Z coordinate of point.
    • Constructor Summary

      Constructors 
      Constructor Description
      Point3D()
      Initializes structure to (0,0,0).
      Point3D​(int x, int y, int z)
      Initializes structure to the supplied values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      Prints out this point object in a user readable form.
      • Methods inherited from class java.lang.Object

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

      • serialVersionUID

        private static final long serialVersionUID
        Use serialVersionUID for interoperability.
        See Also:
        Constant Field Values
      • x

        public int x
        X coordinate of point.
      • y

        public int y
        Y coordinate of point.
      • z

        public int z
        Z coordinate of point.
    • Constructor Detail

      • Point3D

        public Point3D()
        Initializes structure to (0,0,0).
      • Point3D

        public Point3D​(int x,
                       int y,
                       int z)
        Initializes structure to the supplied values.
        Parameters:
        x - X coordinate value.
        y - Y coordinate value.
        z - Z coordinate value.
    • Method Detail

      • toString

        public java.lang.String toString()
        Prints out this point object in a user readable form.
        Overrides:
        toString in class java.lang.Object
        Returns:
        This object as a string.