Class GPoint3D

java.lang.Object
java.awt.geom.Point2D
java.awt.geom.Point2D.Double
uk.ac.starlink.ttools.plot2.geom.GPoint3D
All Implemented Interfaces:
Serializable, Cloneable

public class GPoint3D extends Point2D.Double
Extends Point2D.Double to include a Z coordinate. This third coordinate is not in graphics coordinates as such, but it represents the depth of the point in the Z stack. There is no limit on the Z coordinate range, but lower values are closer to the viewer.
Since:
19 Jul 2018
Author:
Mark Taylor
See Also:
  • Field Details

    • z

      public double z
      The Z coordinate of this Point3D.
  • Constructor Details

    • GPoint3D

      public GPoint3D()
      Constructs a point at the origin.
    • GPoint3D

      public GPoint3D(double x, double y, double z)
      Constructs a point with given coordinates.
      Parameters:
      x - X graphics coordinate
      y - Y graphics coordinae
      z - depth coordinate