astro
Class StarSextractor.PixelPosition

java.lang.Object
  extended by astro.StarSextractor.PixelPosition
All Implemented Interfaces:
Comparator<StarSextractor>
Enclosing class:
StarSextractor

public static class StarSextractor.PixelPosition
extends Object
implements Comparator<StarSextractor>

Returns a comparator that sorts sextractor stars depending on pixel distance from a certain central pixel, stated at construct.


Field Summary
private  Point2D center
          Pixel position of the central point.
 
Constructor Summary
StarSextractor.PixelPosition(double ccdx, double ccdy)
           
StarSextractor.PixelPosition(Point2D cent)
           
 
Method Summary
 int compare(StarSextractor s1, StarSextractor s2)
          Compares the distances of the two star to the specified center.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

center

private Point2D center
Pixel position of the central point.

Constructor Detail

StarSextractor.PixelPosition

public StarSextractor.PixelPosition(double ccdx,
                                    double ccdy)

StarSextractor.PixelPosition

public StarSextractor.PixelPosition(Point2D cent)
Method Detail

compare

public int compare(StarSextractor s1,
                   StarSextractor s2)
Compares the distances of the two star to the specified center.

Specified by:
compare in interface Comparator<StarSextractor>