public class SegDistComperator extends Object implements Comparator<Grid>
Modifier and Type | Field and Description |
---|---|
(package private) Line2D |
line |
(package private) Point2D |
pnt1 |
(package private) Point2D |
pnt2 |
(package private) Segment |
segment |
(package private) double |
weight1 |
(package private) double |
weight2 |
Constructor and Description |
---|
SegDistComperator(Segment segment,
double weight1,
double weight2)
Creates a new instance of SegDistComperator
|
Segment segment
Line2D line
Point2D pnt1
Point2D pnt2
double weight1
double weight2
public SegDistComperator(Segment segment, double weight1, double weight2)
public int compare(Grid grid1, Grid grid2)
compare
in interface Comparator<Grid>