public class Segment extends Object
Modifier and Type | Field and Description |
---|---|
edu.cornell.cs.voronoi.IPnt |
end1 |
edu.cornell.cs.voronoi.IPnt |
end2 |
SOMRegion |
neighborRegion |
Constructor and Description |
---|
Segment(edu.cornell.cs.voronoi.IPnt end1,
edu.cornell.cs.voronoi.IPnt end2)
Creates a new instance of Segment
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g) |
void |
flip() |
double |
getLength() |
edu.cornell.cs.voronoi.Pnt |
getMidPoint() |
edu.cornell.cs.voronoi.IPnt |
getPointFrom(int from,
double distance) |
String |
toString() |
public edu.cornell.cs.voronoi.IPnt end1
public edu.cornell.cs.voronoi.IPnt end2
public SOMRegion neighborRegion
public Segment(edu.cornell.cs.voronoi.IPnt end1, edu.cornell.cs.voronoi.IPnt end2)
public void draw(Graphics2D g)
public void flip()
public edu.cornell.cs.voronoi.Pnt getMidPoint()
public edu.cornell.cs.voronoi.IPnt getPointFrom(int from, double distance)
public double getLength()