Package uk.ac.starlink.ttools.plot
Class Point3D
- java.lang.Object
-
- uk.ac.starlink.ttools.plot.Point3D
-
public class Point3D extends java.lang.Object
Object which represents a point to be plotted on a PlotVolume. This class handles only object comparison; it will have to be subclassed to contain some more information before it can do anything much useful.- Since:
- 26 Mar 2007
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description Point3D(int iseq, double z)
Constructs a new Point3D.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Comparator<Point3D>
getComparator(boolean zAscending, boolean seqAscending)
Returns a comparator which can be used to sort Point3D objects.double
getZ()
Returns the Z coordinate.
-
-
-
Method Detail
-
getZ
public double getZ()
Returns the Z coordinate.- Returns:
- z
-
getComparator
public static java.util.Comparator<Point3D> getComparator(boolean zAscending, boolean seqAscending)
Returns a comparator which can be used to sort Point3D objects.- Parameters:
zAscending
- true for ascending ZseqAscending
- true for ascending sequence ID- Returns:
- comparator
-
-