edu.stanford.rsl.konrad.geometry.shapes.simple
Class SortablePoint

java.lang.Object
  extended by edu.stanford.rsl.konrad.geometry.shapes.simple.PointND
      extended by edu.stanford.rsl.konrad.geometry.shapes.simple.SortablePoint
All Implemented Interfaces:
Transformable, java.io.Serializable, java.lang.Comparable<SortablePoint>
Direct Known Subclasses:
PhysicalPoint

public class SortablePoint
extends PointND
implements java.lang.Comparable<SortablePoint>

See Also:
Serialized Form

Constructor Summary
SortablePoint(double... d)
           
SortablePoint(PointND point)
          Copy constructor for PointND
SortablePoint(SimpleVector add)
           
 
Method Summary
 int compareTo(SortablePoint o)
           
 int getSortIndex()
           
 void setSortIndex(int sortIndex)
           
 
Methods inherited from class edu.stanford.rsl.konrad.geometry.shapes.simple.PointND
applyTransform, clone, equals, euclideanDistance, get, getAbstractVector, getCoordinates, getDimension, set, setCoordinates, toString, updateIfHigher, updateIfLower
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortablePoint

public SortablePoint(double... d)

SortablePoint

public SortablePoint(PointND point)
Copy constructor for PointND

Parameters:
point -

SortablePoint

public SortablePoint(SimpleVector add)
Method Detail

getSortIndex

public int getSortIndex()
Returns:
the sortIndex

setSortIndex

public void setSortIndex(int sortIndex)
Parameters:
sortIndex - the sortIndex to set

compareTo

public int compareTo(SortablePoint o)
Specified by:
compareTo in interface java.lang.Comparable<SortablePoint>