@Test public void testAddBeforeStart() { Segment s = new Segment(0, 0, 0, 1, true); s.addBeforeStart(0, -1); assertEquals(2, s.getNumCoordinates()); assertEquals(0, s.xStart, 0d); assertEquals(-1, s.yStart, 0d); assertEquals(0, s.xEnd, 0d); assertEquals(1, s.yEnd, 0d); }
public void addBeforeStart(double x, double y) { addBeforeStart(x, y, true); }
Segment { public void addBeforeStart(double x, double y) { addBeforeStart(x, y, true); } }
Segment { public void addBeforeStart(double x, double y) { addBeforeStart(x, y, true); } Segment();  Segment(double x1, double y1, double x2, double y2, int initialSize, boolean simplify);   Segment(double x1, double y1, double x2, double y2, boolean simplify); }
Segment { public void addBeforeStart(double x, double y) { addBeforeStart(x, y, true); } Segment();  Segment(double x1, double y1, double x2, double y2, int initialSize, boolean simplify);   Segment(double x1, double y1, double x2, double y2, boolean simplify); void setXY(double x1, double y1, double x2, double y2); void addAfterEnd(double x, double y); void addBeforeStart(double x, double y); LineString toLineString(); void merge(Segment other, MergePoint mergePoint); @Override String toString(); }
Segment { public void addBeforeStart(double x, double y) { addBeforeStart(x, y, true); } Segment();  Segment(double x1, double y1, double x2, double y2, int initialSize, boolean simplify);   Segment(double x1, double y1, double x2, double y2, boolean simplify); void setXY(double x1, double y1, double x2, double y2); void addAfterEnd(double x, double y); void addBeforeStart(double x, double y); LineString toLineString(); void merge(Segment other, MergePoint mergePoint); @Override String toString();  }