Revision 42309 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/line/BaseLine2DM.java
BaseLine2DM.java | ||
---|---|---|
112 | 112 |
* @see org.gvsig.fmap.geom.primitive.OrientablePrimitive#addVertex(double, double) |
113 | 113 |
*/ |
114 | 114 |
public void addVertex(double x, double y) { |
115 |
double m = 0; |
|
116 |
if(coordinates.size()>0){ |
|
117 |
MCoordinate coordinateAnt = (MCoordinate) coordinates.get(coordinates.size()-1); |
|
118 |
m = coordinateAnt.m + coordinateAnt.distance(JTSUtils.createMCoordinate(x, y, coordinateAnt.m)); |
|
119 |
} |
|
120 |
this.addVertex(new Point2DM(x, y, m)); |
|
115 |
this.addVertex(new Point2DM(x, y, 0)); |
|
121 | 116 |
} |
122 | 117 |
|
123 | 118 |
/* (non-Javadoc) |
Also available in: Unified diff