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

@param p0 The start point of the line
@param p1 The end point of the line
@return The comparator
Returns a comparator that compares points by their distance to the specified line @param p0 The start point of the line @param p1 The end point of the line @return The comparator
public static Comparator<Point2D> byDistanceToLineComparator(
        Point2D p0, Point2D p1)
    {
        return byDistanceToLineComparator(
            p0.getX(), p0.getY(), p1.getX(), p1.getY());
    }
public static Comparator < Point2D > byDistanceToLineComparator ( Point2D p0 , Point2D p1 ) { return byDistanceToLineComparator ( p0 . getX ( ) , p0 . getY ( ) , p1 . getX ( ) , p1 . getY ( ) ) ; }
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