geometry = ls;
}
private Geometry getGeometry(CPoint p1, CPoint p2) {
Vector v1 = new Vector(p1, p2);
Vector v2 = new Vector(new Coordinate2D(0, 0), new Coordinate2D(0, 1));
double angle = v1.computeAngle(v2);
AffineTransform transf = AffineTransform.rotate(0, 0, angle + Math.PI
/ 2d);
AffineTransform transf2 = transf.accumulate(AffineTransform.pan(p2
.getX(), p2.getY()));