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/spline/BaseSpline2D.java
BaseSpline2D.java | ||
---|---|---|
101 | 101 |
} |
102 | 102 |
} |
103 | 103 |
|
104 |
public BaseSpline2D(int type, ArrayListCoordinateSequence coordinates) { |
|
105 |
super(type, Geometry.SUBTYPES.GEOM2D); |
|
106 |
this.coordinates = coordinates; |
|
107 |
if (this.coordinates.isEmpty()) { |
|
108 |
anyVertex = new Point2D(0, 0); |
|
109 |
} else { |
|
110 |
anyVertex = new Point2D(coordinates.getX(0), coordinates.getY(0)); |
|
111 |
} |
|
112 |
} |
|
113 |
|
|
104 | 114 |
/* (non-Javadoc) |
105 | 115 |
* @see org.gvsig.fmap.geom.primitive.OrientablePrimitive#addVertex(double, double) |
106 | 116 |
*/ |
Also available in: Unified diff