Revision 44612 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/primitive/curve/arc/Arc2D.java
Arc2D.java | ||
---|---|---|
125 | 125 |
* @see org.gvsig.fmap.geom.Geometry#cloneGeometry() |
126 | 126 |
*/ |
127 | 127 |
public Geometry cloneGeometry() { |
128 |
Arc2D arc2D = new Arc2D(); |
|
128 |
Arc2D other = new Arc2D(); |
|
129 |
other.setProjection(this.getProjection()); |
|
129 | 130 |
Point clonedInit = (Point)init.cloneGeometry(); |
130 | 131 |
Point clonedMiddle = (Point)middle.cloneGeometry(); |
131 | 132 |
Point clonedEnd = (Point)end.cloneGeometry(); |
132 |
arc2D.setPoints(clonedInit, clonedMiddle, clonedEnd);
|
|
133 |
return arc2D;
|
|
133 |
other.setPoints(clonedInit, clonedMiddle, clonedEnd);
|
|
134 |
return other;
|
|
134 | 135 |
} |
135 | 136 |
|
136 | 137 |
/* |
Also available in: Unified diff