src/main/java/de/javagl/geom/Points.java
/**
     * Returns a comparator that compares points by their distance to
     * the specified line
     * 
     * @param line The line
     * @return The comparator
     */
Returns a comparator that compares points by their distance to
the specified line

@param line The line
@return The comparator
Returns a comparator that compares points by their distance to the specified line @param line The line @return The comparator
public static Comparator<Point2D> byDistanceToLineComparator(
        Line2D line)
    {
        return byDistanceToLineComparator(
            line.getX1(), line.getY1(), line.getX2(), line.getY2());
    }
public static Comparator < Point2D > byDistanceToLineComparator ( Line2D line ) { return byDistanceToLineComparator ( line . getX1 ( ) , line . getY1 ( ) , line . getX2 ( ) , line . getY2 ( ) ) ; }
Returns a comparator that compares points by their distance to
 the specified line
Returns a comparator that compares points by their distance to the specified line