Class Point3D

java.lang.Object
gov.nih.mipav.model.structures.Point3D

public class Point3D extends 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 final long
    Use serialVersionUID for interoperability.
    int
    X coordinate of point.
    int
    Y coordinate of point.
    int
    Z coordinate of point.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    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 Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • 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 Details

    • 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 Details

    • toString

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