Package uk.ac.starlink.ttools.plot2.geom
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
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
-
Field Summary
FieldsFields inherited from class java.awt.geom.Point2D.Double
x, y
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.awt.geom.Point2D.Double
getX, getY, setLocation, toString
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
-
Field Details
-
z
public double zThe 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 coordinatey
- Y graphics coordinaez
- depth coordinate
-